Search found 20 matches

by Markuss
Thu May 30, 2024 5:06 pm
Forum: Beginners Help
Topic: How does real time lighting work get vertex context to the shader?
Replies: 2
Views: 571

How does real time lighting work get vertex context to the shader?

I understand how vertex shaders and fragment shaders work. When a game engine has a moving light point the light point has to change the colors of the vertices around it. I understand the concept of shadow mapping where a scene is rendered from the lights point of view and any object that the light ...
by Markuss
Thu May 23, 2024 4:11 pm
Forum: Advanced Help
Topic: How to use S3DVertex2TCoords?
Replies: 4
Views: 1035

Re: How to use S3DVertex2TCoords?

awesome. thank you so much
by Markuss
Sun May 19, 2024 11:25 pm
Forum: Advanced Help
Topic: How to use S3DVertex2TCoords?
Replies: 4
Views: 1035

Re: How to use S3DVertex2TCoords?

Im still pretty confused. In Minetest the client has a getMesh function. client->getMesh(mesh); It works by getting the file name and then iterating over an array of loaders. These are the loaders in CSceneManager.h #ifdef _IRR_COMPILE_WITH_X_LOADER_ MeshLoaderList.push_back(new CXMeshFileLoader(thi...
by Markuss
Sun May 19, 2024 8:18 pm
Forum: Advanced Help
Topic: How to use S3DVertex2TCoords?
Replies: 4
Views: 1035

How to use S3DVertex2TCoords?

Im modding Minetest and would like to use S3DVertex2TCoords because I need the extra UVs to pass some extra info to the shader. (Each node needs to have some information about its neighbors so I can tile the connected textures in the shader) The minetest code is written to use video::S3DVertex. For ...
by Markuss
Wed Apr 17, 2024 9:56 pm
Forum: Advanced Help
Topic: How to get reference to active shader program in OpenGLDriver?
Replies: 5
Views: 831

Re: How to get reference to active shader program in OpenGLDriver?

I dont think I need normals. I can use Normal.X and Normal.Z to pack my ints but if I try to use normal.Y my mesh turns dark where it shouldnt. Im not sure why or where Normal.Y is being used, the node shader doesn't appear to be using the normals... I need some bits in each vertex so that I can til...
by Markuss
Wed Apr 17, 2024 9:00 pm
Forum: Advanced Help
Topic: How to get reference to active shader program in OpenGLDriver?
Replies: 5
Views: 831

Re: How to get reference to active shader program in OpenGLDriver?

Thanks I decided to heed your warning and pack my int into the normals float. My code appears to work but Im a bit worried that I may get a rounding error or overflow error at some point and not get exactly the int that I tried to pack. Remember I cant use getFloatsFormInt in glsl because Im stuck i...
by Markuss
Tue Apr 16, 2024 10:56 pm
Forum: Advanced Help
Topic: How to get reference to active shader program in OpenGLDriver?
Replies: 5
Views: 831

How to get reference to active shader program in OpenGLDriver?

Im sorry if this is the wrong place to ask Im new to driver programming. Im messing with Minetest and Im trying to attach an int called ConnectionX to each vertex. Ive got my int set up in my vertex datastructre called ConnectionX and Ive gota attribute in my vertex shader called int vConnectionX; I...
by Markuss
Wed Apr 10, 2024 10:35 pm
Forum: Beginners Help
Topic: Irrlicht doesnt support bitwise opporators?
Replies: 1
Views: 899

Irrlicht doesnt support bitwise opporators?

Im using minetests version of irrlicht and im getting Irrlicht: GLSL (> 2.x) shader failed to compile: shaderType: 35632 2024-04-10 15:31:55: ERROR[Main]: Irrlicht: ERROR: 0:790: 'bitwise inclusive or' : not supported for this version or the enabled extensions ERROR: 0:790: '' : compilation terminat...
by Markuss
Wed Jan 24, 2024 5:34 pm
Forum: Advanced Help
Topic: Reduce the paralax effect or fish bowl distortion?
Replies: 6
Views: 2110

Re: Reduce the paralax effect or fish bowl distortion?

@CuteAlien Thank you again. I was able to integrate those changes with Minetest and updating the matrix code even fixed a bug with the orthogonal view I was having so thats nice, but Im not exactly sure how to use lens shift. Do you have any examples of how I should set up my camera to make use of it?
by Markuss
Wed Jan 17, 2024 6:12 pm
Forum: Advanced Help
Topic: Reduce the paralax effect or fish bowl distortion?
Replies: 6
Views: 2110

Re: Reduce the paralax effect or fish bowl distortion?

Its real 3d geometry. The blocks are cubes that flare out at the bottom and the little wooden sticks are rectangular cuboids. Unfortunately Im using Minetests version of Irrlicht which likely will be hard to merge with the actual version... Im pretty sure I compile Irrlicth every time I compile my g...
by Markuss
Tue Jan 16, 2024 5:45 pm
Forum: Advanced Help
Topic: Reduce the paralax effect or fish bowl distortion?
Replies: 6
Views: 2110

Reduce the paralax effect or fish bowl distortion?

Ive gota 2.5d pixel art game and Ive noticed that when my mesh is on the edge of the screen that the pixels dont line up too good: No Distortion: https://imgur.com/a/n4Pxg9w Distortion: https://imgur.com/a/O3ZKvHb I can fix this using: projMat.buildProjectionMatrixOrthoLH(600,200,10,6000); But I do ...
by Markuss
Sat Jul 01, 2023 3:59 pm
Forum: Beginners Help
Topic: Best way to change clothing on a billboard sprite?
Replies: 2
Views: 697

Re: Best way to change clothing on a billboard sprite?

Thanks! I give the shader method a try!
by Markuss
Fri Jun 30, 2023 5:29 pm
Forum: Beginners Help
Topic: Best way to change clothing on a billboard sprite?
Replies: 2
Views: 697

Best way to change clothing on a billboard sprite?

Ive got an iBillboardSceneNode that is my player avatar in a 3d world. My sprite always faces the camera like the sprites in the original doom. I have layers of armor and weapons that ld like to overlay as they are equipped and unequipped. Is the best way to do this via having other billboards in fr...
by Markuss
Thu Jun 22, 2023 4:06 pm
Forum: Beginners Help
Topic: How to flip an iBillboardSceneNode
Replies: 2
Views: 726

Re: How to flip an iBillboardSceneNode

Thank you so much!