octree
Anyone tried to implement octree in lesson 10 or 23
I just want to know anything about it
thanks in advance
gametutorials.com
its all there, just take a look around
its all there, just take a look around

If that's not the help you're after then you're going to have to explain the problem better than what you have. - joanusdmentia
My Page davepermen.net | My Music on Bandcamp and on Soundcloud
cond3d.gamedev.net
I think that''s the address.
------------------------------------------------------------
Email
Website
"If you try and don''t succeed, destroy all evidence that you tried."
------------------------------------------------------------
I think that''s the address.
------------------------------------------------------------
Website
"If you try and don''t succeed, destroy all evidence that you tried."
------------------------------------------------------------
cone3d.gamedev.net
There is alot of error giving in the glut code while compiling it
Can anyone please try compiling it and explaining me those
I have all the necessary files(glut) in their correct location
Thanks in advance
There is alot of error giving in the glut code while compiling it
Can anyone please try compiling it and explaining me those
I have all the necessary files(glut) in their correct location
Thanks in advance
quote:
Original post by wojtos
cond3d.gamedev.net
I think that's the address.
Presumably just a typo, but it's cone3d.gamedev.net
John B
[edited by - JohnBSmall on April 2, 2002 11:52:05 AM]
The best thing about the internet is the way people with no experience or qualifications can pretend to be completely superior to other people who have no experience or qualifications.
whoops, I was in a hurray 
Sorry
------------------------------------------------------------
Email
Website
"If you try and don''t succeed, destroy all evidence that you tried."
------------------------------------------------------------

Sorry
------------------------------------------------------------
Website
"If you try and don''t succeed, destroy all evidence that you tried."
------------------------------------------------------------
okay here are the errors i am getting
I am using glut32.dll and cygwin1.dll
anyone wanna have a look
one3dtga.cpp
error C4716: ''Cone3DOctree::toggleWirez'' : must return a value
error C4716: ''Cone3DOctree::setPolyz'' : must return a value
error C4716: ''Cone3DOctree::Draw'' : must return a value
error C2057: expected constant expression
error C2466: cannot allocate an array of constant size 0
error C2133: ''comment'' : unknown size
error C2070: illegal sizeof operand
Muksitul
I am using glut32.dll and cygwin1.dll
anyone wanna have a look
one3dtga.cpp
error C4716: ''Cone3DOctree::toggleWirez'' : must return a value
error C4716: ''Cone3DOctree::setPolyz'' : must return a value
error C4716: ''Cone3DOctree::Draw'' : must return a value
error C2057: expected constant expression
error C2466: cannot allocate an array of constant size 0
error C2133: ''comment'' : unknown size
error C2070: illegal sizeof operand
Muksitul
April 04, 2002 02:35 AM
these error messages are quite self-explanatory :
error C4716: ''Cone3DOctree::toggleWirez'' : must return a value
check the declaration of the method toggleWirez of the class Cone3DOctree ... according to this error message, the compiler expects a return statement in the method...
error C4716: ''Cone3DOctree::setPolyz'' : must return a value
same as above
error C4716: ''Cone3DOctree::Draw'' : must return a value
idem
error C2057: expected constant expression
error C2466: cannot allocate an array of constant size 0
i think these two errors are linked together, ie the second one will disappear if you correct the first one ... it seems that somewhere in the code a const or #define statement is fucked up so that it evaluates to 0, and then later when the array is allocated with this constant expression it tries to allocate 0 bytes of memory ... surely a typo at the line specified by the first error
error C2133: ''comment'' : unknown size
error C2070: illegal sizeof operand
i can''t extrapolate from these two error messages, you should look into the code there, and try to understand ...
by the way i''d like to point out that you seem to not understand some basic error reportings, thus i can extrapolate that you need some more C/C++ learning before trying to get into graphics programming ... or try another language yhou understand more ...
c ya,
flure
error C4716: ''Cone3DOctree::toggleWirez'' : must return a value
check the declaration of the method toggleWirez of the class Cone3DOctree ... according to this error message, the compiler expects a return statement in the method...
error C4716: ''Cone3DOctree::setPolyz'' : must return a value
same as above
error C4716: ''Cone3DOctree::Draw'' : must return a value
idem
error C2057: expected constant expression
error C2466: cannot allocate an array of constant size 0
i think these two errors are linked together, ie the second one will disappear if you correct the first one ... it seems that somewhere in the code a const or #define statement is fucked up so that it evaluates to 0, and then later when the array is allocated with this constant expression it tries to allocate 0 bytes of memory ... surely a typo at the line specified by the first error
error C2133: ''comment'' : unknown size
error C2070: illegal sizeof operand
i can''t extrapolate from these two error messages, you should look into the code there, and try to understand ...
by the way i''d like to point out that you seem to not understand some basic error reportings, thus i can extrapolate that you need some more C/C++ learning before trying to get into graphics programming ... or try another language yhou understand more ...
c ya,
flure
April 04, 2002 02:49 AM
The last message pretty much covers it -
However, without looking at the code I am going to go out on a limb and guess the error C4716 were because you forgot to specifically declare a return of void. If nothing is specified ( which can easily be mistaken for "dont return anything" ) it defaults to returning int - or at least most compilers will with the default options. In that case you get the error because the function was never intended to return anything.
Hope that helps a little -
However, without looking at the code I am going to go out on a limb and guess the error C4716 were because you forgot to specifically declare a return of void. If nothing is specified ( which can easily be mistaken for "dont return anything" ) it defaults to returning int - or at least most compilers will with the default options. In that case you get the error because the function was never intended to return anything.
Hope that helps a little -
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement