Search found 12 matches

by dc740
Thu Jan 29, 2015 2:10 am
Forum: Beginners Help
Topic: [Solved]Any way to tie two objects together?
Replies: 5
Views: 969

Re: Any way to tie two objects together?

Solved. I was setting the billboard RELATIVE position to itself off from the center instead of setting the billboard absolute position in the world. So the rotation was completely messed up

Now it rotates as expected.

By the way, this is my render method for the multi-purpose billboard (static and ...
by dc740
Wed Jan 28, 2015 3:23 pm
Forum: Beginners Help
Topic: [Solved]Any way to tie two objects together?
Replies: 5
Views: 969

Re: Any way to tie two objects together?

Someone else will have to answer this as I have no experience using texture matrices. However, I believe that Irrlicht actually passes texture matrices to the driver, so you might just try it.


How odd that it's not supported by default then. I already have my animations and billboards working as ...
by dc740
Tue Jan 27, 2015 1:31 am
Forum: Beginners Help
Topic: [Solved]Any way to tie two objects together?
Replies: 5
Views: 969

Re: Any way to tie two objects together?

Thanks! I didn't know that. I'll test it ASAP.

About the billboards:
I implemented my own billboards and texture animations. My billboards have an option to face the camera, or simply not. Now that you mention it... would simple planes accept texture animators? It's not that it took me much time ...
by dc740
Mon Jan 26, 2015 9:09 pm
Forum: Beginners Help
Topic: [Solved]Any way to tie two objects together?
Replies: 5
Views: 969

[Solved]Any way to tie two objects together?

Suppose I have two boxes, the world around is moving and rotating, but the two boxes must stay at a fixed point relatives to each other.

Is there any way to do this?

The truth is I have 4 billboards which should act as a box, rotating and moving around. But it must look like it's only one object ...
by dc740
Sat Jan 03, 2015 2:19 am
Forum: Beginners Help
Topic: Rotate Camera around object or 3d location
Replies: 6
Views: 1388

Re: Rotate Camera around object or 3d location

looks like it's too late and I'm a newbie myself, so I don't know if this helps, but you can use the code from the Example N°8: Special Effects.

// create light

node = smgr->addLightSceneNode(0, core::vector3df(0,0,0),
video::SColorf(1.0f, 0.6f, 0.7f, 1.0f), 800.0f);
scene::ISceneNodeAnimator ...
by dc740
Thu Jan 01, 2015 11:28 pm
Forum: Beginners Help
Topic: [Solved]Recommended texture animation method?
Replies: 5
Views: 1422

Re: [Solved]Recommended texture animation method?

I solved it. I updated the first post with the result. It's the first thing I do with irrlicht, so there might be some errors in the code.
by dc740
Mon Dec 29, 2014 1:47 am
Forum: Beginners Help
Topic: [SOLVED] irrSceneMg->addChild calls addSkyBoxSceneNode
Replies: 4
Views: 692

Re: ((ISceneNode*) irrSceneMg->addChild calls addSkyBoxScene

Thank you Ovan. I learned that the hard way through experimenting, but I just started assuming a lot of things, without being sure about anything (I edited the original thread about an hour ago). Now it's clear.

http://stackoverflow.com/questions/9138730/why-is-it-important-to-use-static-cast ...
by dc740
Mon Dec 29, 2014 12:17 am
Forum: Beginners Help
Topic: [SOLVED] irrSceneMg->addChild calls addSkyBoxSceneNode
Replies: 4
Views: 692

Re: ((ISceneNode*) irrSceneMg->addChild calls addSkyBoxScene

here is the debug output and object information about the SceneManager


p irrSceneMgr
$1 = (irr::scene::CSceneManager *) 0x10b1bc0
> ptype irrSceneMgr
type = /* real type = irr::scene::CSceneManager * */
class irr::scene::ISceneManager : public virtual irr::IReferenceCounted {
...methods ...
by dc740
Sun Dec 28, 2014 7:33 pm
Forum: Beginners Help
Topic: [SOLVED] irrSceneMg->addChild calls addSkyBoxSceneNode
Replies: 4
Views: 692

[SOLVED] irrSceneMg->addChild calls addSkyBoxSceneNode

I'm trying to re-implement the billboard with a minor changes and I'm experiencing this behavior:
When CSceneManager calls the constructor of the billboard in addBillboardSceneNode, the ISceneNode calls parent->addChild... where the parent is the CSceneManager object in memory.
For a few extra ...
by dc740
Sun Dec 28, 2014 4:53 am
Forum: Beginners Help
Topic: [Solved]Recommended texture animation method?
Replies: 5
Views: 1422

Re: Recommended texture animation method?

Since I'm just a newbie on these, I ended up trying the TAnimSprite. It does what I need, but could you guys point me to the right direction when it comes to rotating and moving the ISceneNode? (moving it would be the most important)

https://web.archive.org/web/20061012222551/http://www.irrforge ...
by dc740
Sat Dec 27, 2014 5:46 am
Forum: Beginners Help
Topic: [Solved]Recommended texture animation method?
Replies: 5
Views: 1422

Re: Recommended texture animation method?

AFAIK, the demo and 2D tutorial in irrlicht only covers basic 2D drawing on the screen. What I actually want is a billboard with a texture animator, that doesn't point at the camera all the time (I know it sounds weird), and it's efficient enough to show a lot of "sprites" on the screen ...
by dc740
Fri Dec 26, 2014 1:56 am
Forum: Beginners Help
Topic: [Solved]Recommended texture animation method?
Replies: 5
Views: 1422

[Solved]Recommended texture animation method?

UPDATE:
I don't know if it's the best way to do it, but I implemented a few classes that work just fine. Here is the irrlicht example:
https://mega.co.nz/#!sVNEjIjD!A5OH1ktI5pgZEfS9v6yCvGqbwvbd6tCEHHMMneIzhaA

What I did:
1)Implemented a Billboard that supports using it as a standard Billboard, but ...