Search found 11 matches

by TestDev
Tue Aug 07, 2018 1:50 pm
Forum: Beginners Help
Topic: Manage Node Lifetime (OOP)
Replies: 11
Views: 1929

Re: Manage Node Lifetime (OOP)

Ok, so stepping back for a bit I am thinking that my initial approach is flawed. I wanted to have my own "node" class that held a pointer to an "IMeshSceneNode" and would wrap up some functions for me.

So now I am thinking that this approach my be slightly off. How would you suggest that I control ...
by TestDev
Tue Aug 07, 2018 11:07 am
Forum: Beginners Help
Topic: Manage Node Lifetime (OOP)
Replies: 11
Views: 1929

Re: Manage Node Lifetime (OOP)

Thanks for your reply. By the below:

You need to drop the old value (if non-null) before changing the pointer "irrNodePntr = other. irrNodePntr;"

Do you mean implementing something along the lines of:
If (irrNodePntr){
irrNodePntr.Drop();
}
irrNodePntr = other. irrNodePntr; Instead of just a ...
by TestDev
Tue Aug 07, 2018 10:11 am
Forum: Beginners Help
Topic: Manage Node Lifetime (OOP)
Replies: 11
Views: 1929

Re: Manage Node Lifetime (OOP)

I have been trying to implement the Lifetime management, however my code is not working as expected. I keep hitting a debug error of having a reference counter less than 1 so I am not sure how this happens. So far my simplified code is:
Class node{
irr::scene::IMeshSceneNode* irrNodePntr = nullptr ...
by TestDev
Mon Aug 06, 2018 10:51 am
Forum: Beginners Help
Topic: Manage Node Lifetime (OOP)
Replies: 11
Views: 1929

Re: Manage Node Lifetime (OOP)

Fantastic, thanks. I was trying to combine both remove and drop, hence my confusion, make much more sense now.
by TestDev
Mon Aug 06, 2018 8:11 am
Forum: Beginners Help
Topic: Manage Node Lifetime (OOP)
Replies: 11
Views: 1929

Re: Manage Node Lifetime (OOP)

Hello, thanks for the reply. Where you said the below:

You don't think about releasing memory, but only about - this specific object no longer needs this pointer. And once no one needs it anymore the memory will be released.

I just wanted to clarify if I correctly grab and drop the reference ...
by TestDev
Sun Aug 05, 2018 10:19 am
Forum: Beginners Help
Topic: Manage Node Lifetime (OOP)
Replies: 11
Views: 1929

Manage Node Lifetime (OOP)

Hello All,

One of the things that I was unable to pick up from the tutorials is how to dispose of a node once I am done with it. Reading through the references has shown me the remove methods which to a beginner sounds like the place to go.

Now I am going down the route of OOP (Object-oriented ...
by TestDev
Fri Jul 06, 2018 9:20 am
Forum: Beginners Help
Topic: Coordinates System
Replies: 5
Views: 1143

Re: Coordinates System

Hello Both,

Thanks for your input, I have managed to succeed in debugging my issue. Once I understood the coordinates I found the following:
1) I think my normal were incorrect leading to the back of the model being shown
2) My texture was rotated by 90 degrees which contributed to my loss of ...
by TestDev
Thu Jul 05, 2018 10:39 am
Forum: Beginners Help
Topic: Coordinates System
Replies: 5
Views: 1143

Coordinates System

Hello All,

I know this must have been asked before but I have been struggling to find a 100% solid answer. So before we get into it my 3d positions have been a little off and this could be down to a number of reasons (Coordinates, Camera positions, 3d editor exporting, programming oops). So first ...
by TestDev
Thu Jun 21, 2018 9:58 am
Forum: Beginners Help
Topic: Things I wish I knew before starting IrrLicht
Replies: 4
Views: 1244

Things I wish I knew before starting IrrLicht

Hello All,

I saw a post like this for another software before and it contained a lot of good tips and pointers to help newcomers out in the early to mid days.

So the start of using a new tool comes with a learning curve and many iterations of code to refine your skills to the point where they are ...
by TestDev
Thu Jun 21, 2018 9:54 am
Forum: Beginners Help
Topic: Relative positions
Replies: 3
Views: 724

Re: Relative positions

Thanks for both of your help!
by TestDev
Tue Jun 19, 2018 3:27 pm
Forum: Beginners Help
Topic: Relative positions
Replies: 3
Views: 724

Relative positions

Hello All,

I am quite new to the engine and I am just trying to get my feet wet. So I have a few simple questions that I was wondering if you could help with:

1) Is it possible to set positions relative to other objects (Even if this is limited to parents)
2) Does IrrLicht provide methods to move ...