Page 8 of 14

Re: N3XTD: 3D engine

Posted: Fri Sep 18, 2009 1:44 am
by byo
@aonyn: You probably have a third-party library which has this structure. Try to look for this lib.

Re: N3XTD: 3D engine

Posted: Fri Sep 18, 2009 7:17 am
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?

Re: N3XTD: 3D engine

Posted: Fri Sep 18, 2009 6:51 pm
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

Re: N3XTD: 3D engine

Posted: Sat Sep 19, 2009 10:36 am
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.

Re: N3XTD: 3D engine

Posted: Sat Sep 19, 2009 5:17 pm
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.

Re: N3XTD: 3D engine

Posted: Sat Sep 19, 2009 6:57 pm
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

Re: N3XTD: 3D engine

Posted: Sat Sep 19, 2009 7:07 pm
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

Re: N3XTD: 3D engine

Posted: Sat Sep 19, 2009 7:42 pm
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.

Re: N3XTD: 3D engine

Posted: Sat Sep 19, 2009 7:57 pm
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

Re: N3XTD: 3D engine

Posted: Sat Sep 19, 2009 8:01 pm
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

Re: N3XTD: 3D engine

Posted: Sat Sep 19, 2009 8:07 pm
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

Re: N3XTD: 3D engine

Posted: Sat Sep 19, 2009 8:24 pm
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.

Re: N3XTD: 3D engine

Posted: Sun Sep 20, 2009 6:46 pm
by sigi
Hi Tmyke,
is it possible to save irrmesh or irrscene files ? Would be cool for making editors .
Thank you.

Re: N3XTD: 3D engine

Posted: Sun Sep 20, 2009 7:21 pm
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. ;)

Re: N3XTD: 3D engine

Posted: Sun Sep 20, 2009 7:31 pm
by sigi
Woaahh, great. Thank`s for your hard work on this. :D