Search found 5 matches
- Fri May 16, 2014 10:40 am
- Forum: Beginners Help
- Topic: Understanding matrices (in shader)
- Replies: 5
- Views: 754
Re: Understanding matrices (in shader)
we use mul to transform vector (v_pos) from 3D space to our 2d screen.
Does that mean if I use:
outPos = mul(v_pos, ViewProjectionWorldMatrix);
I have as result in outPos the 2D position on the screen of the vertex?
its still a vector with 4 components with normalized values from -1 to 1
the ...
- Sun May 11, 2014 8:31 pm
- Forum: Beginners Help
- Topic: Understanding matrices (in shader)
- Replies: 5
- Views: 754
Re: Understanding matrices (in shader)
Hi shaders are mostly math so its hard to get started
in hlsl:
struct_name.v_pos = mul(float4(v_pos, 1.0f), wvp_matrix)
we use mul to transform vector (v_pos) from 3D space to our 2d screen.
v_pos has x y z.
but for the shader vectors have 4 components: (x,y,z,w)
w=1 indicates that it is a vector ...
in hlsl:
struct_name.v_pos = mul(float4(v_pos, 1.0f), wvp_matrix)
we use mul to transform vector (v_pos) from 3D space to our 2d screen.
v_pos has x y z.
but for the shader vectors have 4 components: (x,y,z,w)
w=1 indicates that it is a vector ...
- Mon May 05, 2014 10:54 am
- Forum: Beginners Help
- Topic: Bender with Irrlicht/best 3D modeling/animation tool
- Replies: 4
- Views: 676
Re: Bender with Irrlicht/best 3D modeling/animation tool
it should work if you use these settings:
http://irrlicht.sourceforge.net/forum/v ... =1&t=49222
You can also try the .b3d blender plugin (only for export):
http://irrlicht.sourceforge.net/forum/v ... =4&t=49777
http://irrlicht.sourceforge.net/forum/v ... =1&t=49222
You can also try the .b3d blender plugin (only for export):
http://irrlicht.sourceforge.net/forum/v ... =4&t=49777
- Fri Oct 18, 2013 6:20 pm
- Forum: Beginners Help
- Topic: [SOLVED] Export .X from Blender
- Replies: 2
- Views: 783
Re: Irrlicht can't play .X animation exported from Blender2.

I opened the Bullock.blend and exported with these settings and it played the animation
i think it was the "Export Skin Weights" option you forgot
- Mon Oct 14, 2013 6:50 pm
- Forum: Beginners Help
- Topic: Create 3D Box with "on-the-fly"-textures
- Replies: 6
- Views: 1463
Re: Create 3D Box with "on-the-fly"-textures
Hi i am also new here
this code creates the cube and sets the texture you want
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IMeshSceneNode *meshnode = smgr->addCubeSceneNode(10,0,1,vector3df(5,100,25),vector3df(0,0,0),vector3df(5,5,5 ...
this code creates the cube and sets the texture you want
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IMeshSceneNode *meshnode = smgr->addCubeSceneNode(10,0,1,vector3df(5,100,25),vector3df(0,0,0),vector3df(5,5,5 ...