Archived

This topic is now archived and is closed to further replies.

3dmodelerguy

terrain only engine

Recommended Posts

quote:
Original post by 3dmodelerguy
becuase the core of the cipher engine is all in c++.


so?!



"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"

Share this post


Link to post
Share on other sites
quote:
Original post by CPPMaster Poppet
so?!



C is more portable. He''ll be avoiding a lot of porting headaches if he sticks with C.

Share this post


Link to post
Share on other sites
quote:
Original post by 3dmodelerguy
I made a mistake, the enigne is in all c not c++, and it will save me time from try to switch the cipher (C language) to c++.


It will take you exactly 0 minutes and 0 seconds, since c++ is backwards compatible with c.

Share this post


Link to post
Share on other sites
quote:
Original post by sirSolarius
quote:
Original post by 3dmodelerguy
I made a mistake, the enigne is in all c not c++, and it will save me time from try to switch the cipher (C language) to c++.


It will take you exactly 0 minutes and 0 seconds, since c++ is backwards compatible with c.



But I''m not forward compatible with flawed paradigms.

Share this post


Link to post
Share on other sites
why do some people always seem to want to "convert" other people to C++, or to C?

he wants a C terrain engine. fine... his original question hasn't been answered yet, but we've had a start of a discussion about C vs C++.. great :|

sirSolarius>
quote:
It will take you exactly 0 minutes and 0 seconds, since c++ is backwards compatible with c.


that doesn't take into account the portability wrburns tlked about, does it?

also, why do you people care witch language he uses? do you feel the urge to enlighten him with your ideas? :/


3smodelerguy> a terrain engine is pretty vague.. what do you want your final terrain to be like? does it have to be rather huge? (like 50 Km), or can it be smaller? (1-2 Km)?

I don't know anything about pre-made terrain engines, but I _think_ openscenegraph has an implementation of thatcher ulritch's chunked lod.. perhaps you could have a look at that for a start?
(edit: sorry, just realized it's C++... anyway, using the chunker lod's paper, or even roam/roam2 (also, what is your target hardware?), you should be able to come up with a C implementation...)

[edited by - sBibi on March 19, 2004 5:19:23 PM]

[edited by - sBibi on March 19, 2004 5:20:13 PM]

Share this post


Link to post
Share on other sites
And there are also one or two new keywords added to C last revision. I beleive one is something like ''restrict'' though I have not followed what has happened with C.

Share this post


Link to post
Share on other sites
quote:
Original post by Drath
And there are also one or two new keywords added to C last revision. I beleive one is something like ''restrict'' though I have not followed what has happened with C.


AFAIK, it''s also not necessary to declare your functions in C, whereas they must always be declared in C++. That can cause problems as well.

Besides that, C++ is notorious for compiling on some compilers, but not on others. That can lead to serious problems if he is planning on targetting VC++, GCC, Borland, ICC, etc.

Share this post


Link to post
Share on other sites
with good reason as well, its called ''type''
just coz you can do something dont make it good

As for C++ compiler issues, stick to the standard and get a new compiler (VC7.1 for example) and you''ll have little to no problems (templates seem to be the only sticky and then its generaly obscure stuff).

and the last 5 posts (inc this one) havent helpped the OP at all or even been worth while, well done

Share this post


Link to post
Share on other sites
Why do I even brother to ask any question on this forum, I ask for a c based engine (I dont care, as long as it can display some, even small, terrain). Now it has turned into a c vs C++ thread.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.