N3XTD: 3D engine

Developed or developing a new product in PureBasic? Tell the world about it.
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Re: N3XTD: 3D engine

Post by byo »

@aonyn: You probably have a third-party library which has this structure. Try to look for this lib.
Proud registered Purebasic user.
Because programming should be fun.
tmyke
Enthusiast
Enthusiast
Posts: 132
Joined: Fri Sep 29, 2006 1:10 pm
Location: France

Re: N3XTD: 3D engine

Post by tmyke »

N3xtD To install, simply take the three folders in the ZIP files, and
copy them into the PureBasic folder, is everything.
Every time I try to run any sample, I get the following error.
"Line4: 'Structure', 'Interface' or 'Prototype' already declared: Vector2."
This refers to the file n3xtD_Vector2.pbi
I have never encountered this kind of thing.
Do you have an old version of N3xtD already installed?
Strength and wisdom.
Image
aonyn
User
User
Posts: 43
Joined: Tue May 05, 2009 5:20 am

Re: N3XTD: 3D engine

Post by aonyn »

No, however I do have pureGDK installed, as well as Pb-OOP.

Perhaps one of these has a Vector2 Structure.
Thanks for the advice, at least now I have somewhere to begin looking.

Assuming that one of these packages has the structure which is conflicting with N3XTD, what is the best way for me to deal with this?
Should I use multiple installs of purebasic, or is there a simple way to deactivate one addon while I use another?

Thanks,
Dave
tmyke
Enthusiast
Enthusiast
Posts: 132
Joined: Fri Sep 29, 2006 1:10 pm
Location: France

Re: N3XTD: 3D engine

Post by tmyke »

You can actually try on a second installation of PB ( if it's just to test the engine) .

But I think the best solution would be to change the name of the Vector2 structure.
It is little used in N3xtD. You should have very few items to change in this case.

friendly TMyke.
Strength and wisdom.
Image
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: N3XTD: 3D engine

Post by netmaestro »

iirc the structure viewer in the IDE will show structures from all .res files, not just the native ones. So you could look at it in the viewer and compare it with the one in the .pbi file. If theyr'e the same, you can just comment it out and you're on your way.
BERESHEIT
aonyn
User
User
Posts: 43
Joined: Tue May 05, 2009 5:20 am

Re: N3XTD: 3D engine

Post by aonyn »

Thanks again for the advice everyone. :)
I will look into it and see if commenting or renaming will be appropriate.

I am just taking a look at the engine now, as I enjoy tinkering with 3D programming.
I currently am using pureGDK, as well as blitz3D sdk.
Anyway, I noticed this thread, and it looks like you are building a very nice engine TMyke.
So of course I am interested to try your engine also.

I am well underway, with a functional, yet still incomplete first attempt at a game using the blitz3D sdk engine.

Anyway, I will post here when I identify the conflict, with details.
Hopefully it will be of use to another user with the same addons I am using.
Or perhaps it would even be useful for you TMyke, so that you can change the function in the official release, to eliminate the conflict completely.

I expect the conflict will be with pureGDK.
The blitz engine is a dll and include file, and does not contain any libraries which are installed directly to purebasic.

regards,
Dave
aonyn
User
User
Posts: 43
Joined: Tue May 05, 2009 5:20 am

Re: N3XTD: 3D engine

Post by aonyn »

OK, I just checked in the structure viewer, as suggested by netmaestro, and there is indeed another instance of vector2.
The viewer does not show where it is located, but it is indeed there.

I looked at both versions of vector2, and they are indeed identical.

Also I noticed there is vector3, and it also is identical.
I suspect that if I had fixed the vector2 conflict, I would have then received an error from vector 3.

regards,
Dave
tmyke
Enthusiast
Enthusiast
Posts: 132
Joined: Fri Sep 29, 2006 1:10 pm
Location: France

Re: N3XTD: 3D engine

Post by tmyke »

Or perhaps it would even be useful for you TMyke, so that you can change the function in the official release, to eliminate the conflict completely.
Yes, actually, this will be useful.Especially since you're the first user to whom this happens.
I'm curious to know the reason of this problem.
I can actually change the name of the structure vectors, and I would if it appears that there is no other solution.
Strength and wisdom.
Image
aonyn
User
User
Posts: 43
Joined: Tue May 05, 2009 5:20 am

Re: N3XTD: 3D engine

Post by aonyn »

Hi TMyke,

I commented out your vector2 and vector3 structures, and the engine now works with my purebasic installation.
I looked at all of the samples, and there were only a few (all early) which failed to compile, for reasons which appeared to be unrelated.
The vast majority compiled as expected.

Your engine is looking very nice indeed btw.

I don't know if a few samples not compiling is a known issue or not, but if it is not, I can document which ones don't work as well as the error message for each, and post that information for you.

regards,
Dave
aonyn
User
User
Posts: 43
Joined: Tue May 05, 2009 5:20 am

Re: N3XTD: 3D engine

Post by aonyn »

I forgot to mention, I will also see if I can actually find where the conflicting vector2 and vector3 structures are located.
I am nearly certain it must be pureGDK. Perhaps if Mistrel is following this thread, he can shed some light for us.

regards,
Dave
aonyn
User
User
Posts: 43
Joined: Tue May 05, 2009 5:20 am

Re: N3XTD: 3D engine

Post by aonyn »

I just checked the pureGDK documention, and it does indeed have built in math functions for Vector2, Vector3 and Vector4.
I have not actually found the location of these structures, but I am 99.9% certain this is where the conflict is.

Hope this helps.

regards,
Dave
tmyke
Enthusiast
Enthusiast
Posts: 132
Joined: Fri Sep 29, 2006 1:10 pm
Location: France

Re: N3XTD: 3D engine

Post by tmyke »

First conclusion PureGDK and N3xtD do not mix. ;)
I don't know if a few samples not compiling is a known issue or not, but if it is not, I can document which ones don't work as well as the error message for each, and post that information for you.
Indeed, I know what the problems are.
I have never been recovered over the information yet.
Strength and wisdom.
Image
sigi
User
User
Posts: 79
Joined: Fri Apr 25, 2003 7:16 pm
Location: Germany

Re: N3XTD: 3D engine

Post by sigi »

Hi Tmyke,
is it possible to save irrmesh or irrscene files ? Would be cool for making editors .
Thank you.
Athlon X2 7850 - Geforce 8800 GTS 640mb - 8 GB Ram - Vista Home Premium 64 bit SP2
tmyke
Enthusiast
Enthusiast
Posts: 132
Joined: Fri Sep 29, 2006 1:10 pm
Location: France

Re: N3XTD: 3D engine

Post by tmyke »

sigi wrote:Hi Tmyke,
is it possible to save irrmesh or irrscene files ? Would be cool for making editors .
Thank you.
This will be available in the next update. ;)
Strength and wisdom.
Image
sigi
User
User
Posts: 79
Joined: Fri Apr 25, 2003 7:16 pm
Location: Germany

Re: N3XTD: 3D engine

Post by sigi »

Woaahh, great. Thank`s for your hard work on this. :D
Athlon X2 7850 - Geforce 8800 GTS 640mb - 8 GB Ram - Vista Home Premium 64 bit SP2
Post Reply