MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0032606Open CASCADE[OCCT] OCCT:Visualizationpublic2021-10-04 14:382021-10-19 02:33
Reporterage 
Assigned ToCheskoArt 
PrioritynormalSeverityminor 
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version[OCCT] 7.5.0 
Target Version[OCCT] 7.7.0Fixed in Version 
Summary0032606: Visualization - add a shader for sky
DescriptionIt is needed to add an option to show shader-generated sky as a background
Steps To Reproducenot required
TagsNo tags attached.
Test case number
Attached Filespng file icon Sunset_With_Clouds2.PNG (602,767 bytes) 2021-10-19 02:33

- Relationships

-  Notes
(0104693)
git (administrator)
2021-10-18 07:26

Branch CR32606 has been created by CheskoArt.

SHA-1: 13c39fc8f01325cd116de96ea45196bf77cf10be


Detailed log of new commits:

Author: achesnok
Date: Fri Oct 15 01:50:13 2021 +0300

    Added skydome background
(0104694)
kgv (developer)
2021-10-18 10:39

> Added skydome background CR32606
Please don't forget that first commit in git branch should start with a full bug title, e.g.
> 0032606: Visualization - add a shader for sky
(0104716)
kgv (developer)
2021-10-18 18:35

+Standard_EXPORT Standard_Boolean OpenGl_BackgroundArray::createSkydomeArray() const
...
@@ -580,7 +649,7 @@ void OpenGl_BackgroundArray::Render (const Handle(OpenGl_Workspace)& theWorkspac
     
if (aCtx->Camera()->Tile().IsValid())
     {
       aWorldView.SetDiagonal (OpenGl_Vec4 (2.0f / aTileSize.x(), 2.0f / aTileSize.y(), 1.0f, 1.0f));

-      if (myType == Graphic3d_TOB_GRADIENT)
+      if (myType == Graphic3d_TOB_GRADIENT || myType == Graphic3d_TOB_SKYDOME)

As far as I can see, the skybox is rendered as a cube.
Could you try reusing OpenGl_BackgroundArray::createCubeMapArray()?
I guess the same array could be initialized.
And also use Graphic3d_TOB_CUBEMAP rendering path instead of Graphic3d_TOB_GRADIENT to properly handle stereoscopic / VR output.

+Standard_EXPORT Standard_Boolean OpenGl_BackgroundArray::createSkydomeArray() const

Standard_EXPORT is normally expected only in header files.
(0104722)
git (administrator)
2021-10-19 02:30

Branch CR32606 has been updated forcibly by CheskoArt.

SHA-1: 681ad4b3bb4ea1f6f96c0671ab9ad76732c769bf
(0104723)
CheskoArt (developer)
2021-10-19 02:33

Work in progress yet. Ok, i will try to reuse Cubemap.

- Issue History
Date Modified Username Field Change
2021-10-04 14:38 age New Issue
2021-10-04 14:38 age Assigned To => CheskoArt
2021-10-11 14:47 CheskoArt Status new => assigned
2021-10-18 07:26 git Note Added: 0104693
2021-10-18 08:46 CheskoArt File Added: Sunset.PNG
2021-10-18 10:39 kgv Note Added: 0104694
2021-10-18 18:35 kgv Note Added: 0104716
2021-10-19 02:30 git Note Added: 0104722
2021-10-19 02:33 CheskoArt Note Added: 0104723
2021-10-19 02:33 CheskoArt File Deleted: Sunset.PNG
2021-10-19 02:33 CheskoArt File Added: Sunset_With_Clouds2.PNG


Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker