Search found 11 matches

by azerty69
Sat Feb 06, 2021 9:36 am
Forum: Beginners Help
Topic: Rotation on X occurs on Z
Replies: 2
Views: 394

Re: Rotation on X occurs on Z

Hello CuteAlien, Thank you for your reply. I've found where my problem was coming from. At initialization, I was rotating my model of 90 degrees on Y to obtain a good orientation. I've modified the orientation of the model with Blender and removed the following lines from my init code: rotation = ve...
by azerty69
Tue Feb 02, 2021 9:52 am
Forum: Beginners Help
Topic: Rotation on X occurs on Z
Replies: 2
Views: 394

Rotation on X occurs on Z

Hello community, I'm encountering a strange problem. I want to rotate my model on X and the rotation occurs on Z. I use Irrlicht 1.8.4 and the OpenGL driver. Rotations on Y and Z are working perfectly. (...) rotation.X += ... (...) // Apply new values to the ship. shipNode->setPosition(position); sh...
by azerty69
Sun Jan 20, 2019 10:20 am
Forum: Beginners Help
Topic: Billboards position
Replies: 2
Views: 849

Re: Billboards position

Hi, Thank you for your help. I've modified the code and it works perfectly.       srand((unsigned int) time(NULL));       for (int i = 0; i < NBR_STARS; ++i)     {         f32 x = -.5f + f32(rand()) / RAND_MAX;         starPos[i].X = x * 50.f;;           f32 y = -.5f + f32(rand()) / RAND_MAX;       ...
by azerty69
Fri Jan 18, 2019 4:35 pm
Forum: Beginners Help
Topic: Billboards position
Replies: 2
Views: 849

Billboards position

Hello, I'm encoutering a problem with position of billboards. They are not displayed at the correct position that is defined randomly. Insteed, the points are displayed following a diagonal... Can you tell me what I'm missing? I initialize the arrays with the following code:   // //  Starfield // #d...
by azerty69
Tue Jul 02, 2013 12:36 pm
Forum: Everything 2d/3d Graphics
Topic: Camera: no gimbal lock but...
Replies: 5
Views: 2030

Re: Camera: no gimbal lock but...

@Suvi: thanks for your reply. I've better results now :) The only problem with the following code is that when I make a half turn (up or down), left and right are inverted...               //  Rotate node relative to its current rotation.     void rotate(ISceneNode *node, vector3df rot)     {       ...
by azerty69
Mon Jul 01, 2013 2:58 pm
Forum: Everything 2d/3d Graphics
Topic: Camera: no gimbal lock but...
Replies: 5
Views: 2030

Re: Camera: no gimbal lock but...

@mongoose7: thanks for the correction. Unhopefully, it didn't solved the problem.

I've read somewhere that it is preferable to use a separate node for each rotation. In this case, how can I combine them
to obtain the final up and forward vectors?
by azerty69
Sun Jun 30, 2013 8:20 pm
Forum: Everything 2d/3d Graphics
Topic: Camera: no gimbal lock but...
Replies: 5
Views: 2030

Camera: no gimbal lock but...

Hi, I've found code in this topic http://irrlicht.sourceforge.net/forum//viewtopic.php?t=4680&postdays=0&postorder=asc&highlight=skybox+camera&start=0 but I'm encountering a problem: roll occurs while I use pitch and yaw only... The code of the topic has been adapted because the came...
by azerty69
Fri Jun 28, 2013 2:03 pm
Forum: Everything 2d/3d Graphics
Topic: How to draw wireframe objects with a halo
Replies: 6
Views: 2124

Re: How to draw wireframe objects with a halo [SOLVED]

Hi,

I've implemented the technic described in the following URL: http://devmaster.net/posts/3100/shader- ... glow-bloom

Here is the result:
Image
by azerty69
Wed Jun 12, 2013 7:08 pm
Forum: Everything 2d/3d Graphics
Topic: How to draw wireframe objects with a halo
Replies: 6
Views: 2124

Re: How to draw wireframe objects with a halo

Hi,

@hendu
The image is an example of a scene I want to glow.

I've been advised to use a render texture and a shader. Are there other ways to do it?


Thanks for any reply,
azerty
by azerty69
Wed Jun 12, 2013 7:23 am
Forum: Everything 2d/3d Graphics
Topic: How to draw wireframe objects with a halo
Replies: 6
Views: 2124

Re: How to draw wireframe objects with a halo

Hi,

@chronologicaldot
Here is an example image: https://docs.google.com/file/d/0Bys1p-N ... sp=sharing

SMaterial.Thickness is for 2D, how to draw bigger lines in wireframe mode?

Thanks in advance,
azerty
by azerty69
Tue Jun 11, 2013 2:56 pm
Forum: Everything 2d/3d Graphics
Topic: How to draw wireframe objects with a halo
Replies: 6
Views: 2124

How to draw wireframe objects with a halo

Hello,

I'm searching for a way to draw wireframe objects with a halo. Which technique would you recommend?

Thanks in advance for any answer.

azerty