Search found 14 matches

by Mobius
Sun Dec 03, 2006 10:09 pm
Forum: Bug reports
Topic: [fixed] documentation bugs
Replies: 6
Views: 641

Another little typo:

virtual const core::vector3df irr::scene::ISceneNode::getRotation ( ) const

Sets the rotation of the node.
by Mobius
Tue Aug 22, 2006 1:58 pm
Forum: Bug reports
Topic: FOV bug?
Replies: 5
Views: 724

Ok, that confirms my version... thanks!
by Mobius
Tue Aug 22, 2006 8:47 am
Forum: Bug reports
Topic: FOV bug?
Replies: 5
Views: 724

FOV bug?

I think that the FOV in buildProjectionMatrixPerspectiveFovLH/RH
methods are wrong calculated.

In fact, if I restrict the field of view I obtain a zoom out, not a zoom in.
I also tried a patch found at hybryd page, but it doesn't work.

Then I looked the GLUPerspective function:
http://developer ...
by Mobius
Fri Jun 16, 2006 10:32 pm
Forum: Beginners Help
Topic: A problem with createOctTreeTriangleSelector function
Replies: 1
Views: 305

Update... =)


If I change

mat.transformBox(invbox); with mat.transformBoxEx(invbox);

in function COctTreeTriangleSelector::getTriangles (COctTreeTriangleSelector.cpp)

all collisions work well...

Bug? Feature? Error in my code?

Anyway, now my program seems to work! =)
by Mobius
Fri Jun 16, 2006 4:37 pm
Forum: Beginners Help
Topic: A problem with createOctTreeTriangleSelector function
Replies: 1
Views: 305

A problem with createOctTreeTriangleSelector function

I created a custom SceneNode and I used createTriangleSelector function for collisions:

[...]
selector = SceneManager->createTriangleSelector(&s_mesh, this);
[...]
collision->getCollisionPoint(ray, selector, v, t)
[...]

and all collisions work well! =)



But if I use createOctTreeTriangleSelector ...
by Mobius
Tue Feb 21, 2006 10:06 pm
Forum: Beginners Help
Topic: Menu colors
Replies: 4
Views: 731

Ok, maybe I'll modify the source code... =(

Thanks!
by Mobius
Tue Feb 21, 2006 12:33 am
Forum: Beginners Help
Topic: Menu colors
Replies: 4
Views: 731

Menu colors

Can I use different colors for different menu items?

For example:

Menu: File
Menu items: Open(in blue), Exit(in black), etc.


Thanks! =)
by Mobius
Tue Feb 07, 2006 10:03 pm
Forum: Beginners Help
Topic: GUI and antialiasing
Replies: 1
Views: 319

GUI and antialiasing

Maybe this is a stupid question... ^__^
Anyway...

My GUI with antialiasing is very... ugly! (in my opinion) O_o
Can I draw my scene with antialising and GUI without antialiasing?
Eventually, modifying the Irrlicht source code...

Thanx!
by Mobius
Thu Jan 26, 2006 12:02 pm
Forum: Beginners Help
Topic: OpenGL conversion (glColorMaterial)
Replies: 3
Views: 408

Well, I found how to implement it in D3D =)

I must add in CD3D9Driver::drawIndexedTriangleList these lines:

pID3DDevice->SetRenderState(D3DRS_DIFFUSEMATERIALSOURCE, D3DMCS_COLOR1);
pID3DDevice->SetRenderState(D3DRS_AMBIENTMATERIALSOURCE, D3DMCS_COLOR1);
pID3DDevice->SetRenderState(D3DRS ...
by Mobius
Thu Jan 26, 2006 10:55 am
Forum: Beginners Help
Topic: OpenGL conversion (glColorMaterial)
Replies: 3
Views: 408

With glColorMaterial, I can change the material's color for each vertex and not only the vertex's color.

For example, if I enable lighting (and add some lights) in CustomSceneNode tutorial, the object appears "white and black":

http://www.flammataetra.com/images/Image3.jpg

If I add glEnable(GL ...
by Mobius
Thu Jan 26, 2006 1:22 am
Forum: Beginners Help
Topic: OpenGL conversion (glColorMaterial)
Replies: 3
Views: 408

OpenGL conversion (glColorMaterial)

Hi,
I have this code (in OpenGL):

[...]
glEnableClientState(GL_COLOR_ARRAY);
glEnableClientState(GL_NORMAL_ARRAY);
glEnableClientState(GL_VERTEX_ARRAY);

glColorPointer(4, GL_FLOAT, 0, color_p);
glNormalPointer(GL_FLOAT, 0, normal_p);
glVertexPointer(3, GL_FLOAT, 0, vertex_p);
glDrawArrays(GL ...
by Mobius
Tue Jan 24, 2006 5:25 pm
Forum: Beginners Help
Topic: Light / material problem...
Replies: 7
Views: 695

Anonymous wrote:can we apply them directly in our own program?
I am not sure...
Anyway, I recompiled the engine =)
by Mobius
Tue Jan 24, 2006 2:40 pm
Forum: Beginners Help
Topic: Light / material problem...
Replies: 7
Views: 695

Great, it works! =)

Thanks!!
by Mobius
Tue Jan 24, 2006 2:06 pm
Forum: Beginners Help
Topic: Light / material problem...
Replies: 7
Views: 695

Light / material problem...

I have a problem with light/material... =(

I created a simple custom scene node.

I added a light:
light = scene_manager->addLightSceneNode(0, camera_position, SColorf(0.3f, 0.3f, 0.3f));

And I used a material with these parameters:
material.AmbientColor = SColor(255, 20, 20, 20);
material ...