Search found 6 matches

by gregorgragor3
Sun Apr 27, 2025 8:03 am
Forum: Beginners Help
Topic: OpenGL 3.0 GLSL specifics
Replies: 3
Views: 5285

Re: OpenGL 3.0 GLSL specifics

I found solution for specifying GLSL version at top of shader:

#version 150

I am searching now replacement for ftransform() and gl_MultiTexCoord0 in GLSL 1.50 , since they were deprecated and don't work in newer version.
Do you know what to use instead of those two?
by gregorgragor3
Sat Apr 26, 2025 6:05 pm
Forum: Beginners Help
Topic: OpenGL 3.0 GLSL specifics
Replies: 3
Views: 5285

OpenGL 3.0 GLSL specifics

Hi,

why does this shader code: "varying vec2 Texcoord;" work with version 5 of VS and PS, like here:

gpu->addHighLevelShaderMaterial(vertBumpShader, "main", irr::video::EVST_VS_5_0, fragBumpShader, "main", irr::video::EPST_PS_5_0,
callback);

Because "varying" keyword is deprecated in OpenGL 3.0 ...
by gregorgragor3
Sun Apr 20, 2025 4:46 pm
Forum: Beginners Help
Topic: Shadows speedup movement of camera
Replies: 7
Views: 2541

Re: Shadows speedup movement of camera

I think I fixed it. I set vsync to true in createDevice . The FPS stays fixed at 60.
It seems large differences in frame rate do cause speed up or possible slow downs - related to prepare/clean shadows
by gregorgragor3
Sun Apr 20, 2025 4:07 pm
Forum: Beginners Help
Topic: Shadows speedup movement of camera
Replies: 7
Views: 2541

Re: Shadows speedup movement of camera

I use bullet physics and by pressing 'w', I add force relative to screen view to rigid body. Every frame I read rigid body position and apply it to Irrlicht camera. After holding 'w' for long time, after seconds the move speed is much higher. I suppose it has to do something vith Irrlicht render ...
by gregorgragor3
Sun Apr 20, 2025 9:14 am
Forum: Beginners Help
Topic: Shadows speedup movement of camera
Replies: 7
Views: 2541

Re: Shadows speedup movement of camera

I tried creating shadow scene node for simple box, and there is no problem, probably because only few faces are there for shadows.
by gregorgragor3
Sun Apr 20, 2025 9:11 am
Forum: Beginners Help
Topic: Shadows speedup movement of camera
Replies: 7
Views: 2541

Shadows speedup movement of camera

When I am moving forward my player, after few seconds it suddenly speads up.
I figured that shadows of animated character does it. When I don't create shadow scene node for animated character (not the camera object), everything is fine.
Is there a way to solved this speed up problem?