FlexSim Licensing Display Down
Our License server is experiencing an unknown error that is causing licenses to not be displayed in your FlexSim account. Activating & Returning licenses from within FlexSim is still functioning correctly. If you do not have access to your license activation code please contact your FlexSim Distributor

Idea

Lambert avatar image
0 Likes"
Lambert suggested Joerg Vogel commented

Lighting system/gamma setting in RTX mode

RTX mode looks beautiful, however it also looks very dark and cluttered with shadows.

1669295869929.png

As there is no way to turn off shadows in RTX mode, could you add a daylight lighting system or gamma setting or allow the ambient light to affect RTX mode?

linked to https://answers.flexsim.com/questions/131756/shadows-in-rtx-mode.html

thank you

rtxlight
1669295869929.png (1.5 MiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·
It's probably better to have the lights stored as objects in the model tree (not tools) too so that you don't have to recreate for every view. Also allow them to be placed in the object hierarchy so that viewing a cell as the focus doesn't mean you lose all of the lighting (as you lose conveyors currrently)
0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Jason Lightfoot ♦ commented ·
Maybe you find SDKs for your graphic card to set special parameters controlling in general values of shadow creation. C++ libraries have been very common in games creation in the past. So I think that you can find appropriate classes to take influence from FlexSim on such classes.
0 Likes 0 ·

1 Comment

·
Jason Lightfoot avatar image
1 Like"
Jason Lightfoot commented Jason Lightfoot edited

Here's an example script for the creation of a grid of lights for a view. To run it you should first right click the view background and choose "View->Desginate This View (sv)" and alter any of the commented values to suit your need.

1669301828117.png

It seems the more lights you have, the slower the rendering will be.

treenode view=sv();   //right click the view background and choose set as sv()
Vec3 startloc=Vec3(-10,-10,20);   // the SouthWest most corner of the lighting grid (min x and y)
double xsize=20;      //  grid x size
double ysize=20;      //  grid y size
double brightness=0.01;  // brightness per light
int spacing=2;            // grid spacing
double x0=startloc.x;
double y0=startloc.y;
double z0=startloc.z;
int lightidx=0;
double x;double y;
treenode lights=viewlights(view);
treenode light=lights.first;
while (lights.subnodes.length>1)
    lights.last.destroy();
for (int xidx=0;x0+xidx*spacing<x0+xsize;xidx++) {
    for (int yidx=0;y0+yidx*spacing<y0+ysize;yidx++) {
        lightidx++;
        x=x0+xidx*spacing;
        y=y0+yidx*spacing;
        if (lightidx>1)
            light=createcopy(light,lights);
        light.name="Light Source "+lightidx;
        light.subnodes[1].value=x;
        light.subnodes[2].value=y;
        light.subnodes[3].value=z0;
        light.subnodes[4].value=brightness;
        light.subnodes[5].value=brightness;
        light.subnodes[6].value=brightness;
        light.subnodes[7].value=0;        
        light.subnodes[8].value=0;        
    }
}

Note that with good settings for RTX, the lights may be incorrect for non-RTX viewing - requiring more ambient light to correct which is not ideal. The whole system needs calibrating or an exposure/gamma setting adding.

Also note that if you close the view you lose the light setting since it's not currently stored with the model - is the view window that contains the definitions. Because of this you may/not want to set it as the default view.

artificialDaylight.fsm

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Lambert avatar image Lambert commented ·

Thank you very much Jason!

0 Likes 0 ·

Write a Comment

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.