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 ...
Search found 11 matches
- Sat Feb 06, 2021 9:36 am
- Forum: Beginners Help
- Topic: Rotation on X occurs on Z
- Replies: 2
- Views: 637
- Tue Feb 02, 2021 9:52 am
- Forum: Beginners Help
- Topic: Rotation on X occurs on Z
- Replies: 2
- Views: 637
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 ...
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 ...
- Sun Jan 20, 2019 10:20 am
- Forum: Beginners Help
- Topic: Billboards position
- Replies: 2
- Views: 1041
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;
starPos[i].Y = y * 50.f;
f32 z ...
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;
starPos[i].Y = y * 50.f;
f32 z ...
- Fri Jan 18, 2019 4:35 pm
- Forum: Beginners Help
- Topic: Billboards position
- Replies: 2
- Views: 1041
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 ...
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 ...
- Tue Jul 02, 2013 12:36 pm
- Forum: Everything 2d/3d Graphics
- Topic: Camera: no gimbal lock but...
- Replies: 5
- Views: 2641
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)
{
matrix4 m;
m ...
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)
{
matrix4 m;
m ...
- Mon Jul 01, 2013 2:58 pm
- Forum: Everything 2d/3d Graphics
- Topic: Camera: no gimbal lock but...
- Replies: 5
- Views: 2641
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?
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?
- Sun Jun 30, 2013 8:20 pm
- Forum: Everything 2d/3d Graphics
- Topic: Camera: no gimbal lock but...
- Replies: 5
- Views: 2641
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 camera stays at ...
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 camera stays at ...
- Fri Jun 28, 2013 2:03 pm
- Forum: Everything 2d/3d Graphics
- Topic: How to draw wireframe objects with a halo
- Replies: 6
- Views: 2592
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:

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

- Wed Jun 12, 2013 7:08 pm
- Forum: Everything 2d/3d Graphics
- Topic: How to draw wireframe objects with a halo
- Replies: 6
- Views: 2592
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
@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
- Wed Jun 12, 2013 7:23 am
- Forum: Everything 2d/3d Graphics
- Topic: How to draw wireframe objects with a halo
- Replies: 6
- Views: 2592
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
@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
- Tue Jun 11, 2013 2:56 pm
- Forum: Everything 2d/3d Graphics
- Topic: How to draw wireframe objects with a halo
- Replies: 6
- Views: 2592
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
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