Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Thu Mar 28, 2024 10:49 am
All times are UTC + 0
TSO decision making time
Moderators: Judeau
Post new topic   Reply to topic Page 1 of 1 [18 Posts] Mark the topic unread ::  View previous topic :: View next topic

what method should be used ?
OpenGL real-time rendering( high-end )
70%
 70%  [ 17 ]
pseudo-real-time software rendering( in-between )
12%
 12%  [ 3 ]
pre-rendered( low end )
4%
 4%  [ 1 ]
both( OH NOES, MY VACATION )
12%
 12%  [ 3 ]
Total Votes : 24

Author Message
Judeau
Commander


Joined: 28 Feb 2004

PostPosted: Wed May 23, 2007 10:03 pm    Post subject:  TSO decision making time Reply with quote  Mark this post and the followings unread

after having gone through various solutions for voxels, i've got several possible ways to do it, some are high-end real-time voxel rendering, others are far simpler, but do not allow for the same visual goodness.

The OpenGL option by far, is the most visually appealing, and would allow for a lot of extra functionality, think specularity maps, 24 bit colors, 24 bit normals, and emissiveness, however, you'll need a video card of about 2 years old or younger to run it at good FPS rates

the software rendering engine, allows for most of opengl's functionality, and fr good frame rates on poorer systems, the problem with this solution, is the fact the CPU has to carry it all, so these will not be fully real-time, and only be updated when the unit moves, the light color/brightness changes, or you just got it on-screen, this method, in my opinion, is the golden road in between, it however requires more RAM than the opengl method

and finally, like in RA2 and tiberian sun, rendering voxels into sprites during loading, this method has close to no CPU usage in real-time, and costs the most RAM, seeing as 32 orientations * 16 pitch directions * animation frames need to be saved into sprite form, which, as you can guess, is quite a bit.
another method to handle the pre-render method, is by simply re-rendering the part if pitch changes

and no, i cannot allow both software rendering and opengl rendering as options, pre-rendered and opengl, or prerendered and pseudo is possible though

ask any questions you want .



spotlighttest.rar
 Description:
also opengl, just.......bigger voxels

Download
 Filename:  spotlighttest.rar
 Filesize:  220.88 KB
 Downloaded:  437 Time(s)


test.rar
 Description:
this is the opengl method, as you can guess, again, not fully finished

Download
 Filename:  test.rar
 Filesize:  156.52 KB
 Downloaded:  427 Time(s)


special build.rar
 Description:
this is the pseudo method, though, not done yet

Download
 Filename:  special build.rar
 Filesize:  481.09 KB
 Downloaded:  418 Time(s)


_________________
Micro TS
Portable, no campaign, movies or music, just the engine and needed resources for skirmish and lan.

Last edited by Judeau on Wed May 23, 2007 10:53 pm; edited 2 times in total

Back to top
View user's profile Send private message Send e-mail Skype Account
Clazzy
Karma Police


Joined: 26 Nov 2002
Location: Algae Colony On Mars

PostPosted: Wed May 23, 2007 10:30 pm    Post subject: Reply with quote  Mark this post and the followings unread

Just for reference to people voting, I get a decent FPS rate with an oldish 9700 Mobility, it'll be crap on integrated cards and stuff 4 or more years old but it should be fine for most people.

_________________
Quote:
This is sexier than what this forum was supposed to tolerate. - Banshee

Back to top
View user's profile Send private message
Banshee
Supreme Banshee


Also Known As: banshee_revora (Steam)
Joined: 15 Aug 2002
Location: Brazil

PostPosted: Thu May 24, 2007 4:54 am    Post subject: Reply with quote  Mark this post and the followings unread

Honestly, my vote goes for OpenGL. It's easier and it makes a better usage of your video card potential and provides a better image quality. The other two options are recommended if you wanna make a game for mobiles. Considering that this engine will still take some time to be finished, mobiles will be much better and probably support OpenGL better, even if it is OpenGL ES...

Back to top
View user's profile Send private message Visit poster's website Skype Account
Kiith-Sa
Rocket Cyborg


Joined: 26 Oct 2004

PostPosted: Thu May 24, 2007 11:01 am    Post subject: Reply with quote  Mark this post and the followings unread

Definitely OpenGL.
When this is finished, almost everyone will have good enough 3D card.
Altough I'd also like an SW renderer as an option.
But if you make it expandable and OS, someone might write additional SW renderer if you don't want to write both (of course I don't mean myself:P).

_________________
Time will tell...
Sooner or later...
Time will tell...

Back to top
View user's profile Send private message
m666
Cyborg Commando


Joined: 09 Apr 2005
Location: South Carolina

PostPosted: Thu May 24, 2007 8:12 pm    Post subject: Reply with quote  Mark this post and the followings unread

OpenGL, Judeau. It's working quite well here, on mah weaker graphics card. It'll work perfect for those on the beast cards, and it should be good for those on anything weaker than mine.

_________________


Back to top
View user's profile Send private message Skype Account Yahoo Messenger Account AIM Address
Judeau
Commander


Joined: 28 Feb 2004

PostPosted: Thu May 24, 2007 8:38 pm    Post subject: Reply with quote  Mark this post and the followings unread

here, a performance test
extract to a directory, run, keep on for 10 seconds or longer, and then post the contents of log.txt here
if your average frames / second rating exceeds 40, your computer is most probably going to be able to handle real-time voxel rendering in opengl



voxel-GL.rar
 Description:

Download
 Filename:  voxel-GL.rar
 Filesize:  177.74 KB
 Downloaded:  434 Time(s)


_________________
Micro TS
Portable, no campaign, movies or music, just the engine and needed resources for skirmish and lan.

Back to top
View user's profile Send private message Send e-mail Skype Account
ORCACommander
Commander


Joined: 14 Feb 2006
Location: Flying into hostile territory

PostPosted: Thu May 24, 2007 8:54 pm    Post subject: Reply with quote  Mark this post and the followings unread

Its looking awesome here are my results for 10+ seconds



log.txt
 Description:
my stats

Download
 Filename:  log.txt
 Filesize:  1.17 KB
 Downloaded:  257 Time(s)


_________________

Back to top
View user's profile Send private message
Kiith-Sa
Rocket Cyborg


Joined: 26 Oct 2004

PostPosted: Sat May 26, 2007 12:40 pm    Post subject: Reply with quote  Mark this post and the followings unread

All the tests on my comp .
The performance test uses same method as test.rar, right? The spotlight one looks nice but is rather slow, altough that might be becouse of the voxels' size.

Anyway, considering you're gonna also have tons of other objects and terrain to render, not to mention the game logic, I think you still need to speed it up. Maybe TS/RA2 style prerendering would be faster in the end,
it didn't waste my old 192 MB of RAM, and today people have much more of it, considering you have 60 OGL Mammoths on some 60 FPS on my Radeon X1600+Athlon 3200, while you could have similar speeds in TS on 1 GHZ or something like that.



results.txt
 Description:
(Athlon 64 3200+, Radeon X1600 Pro, 512 MB DDR I)

Download
 Filename:  results.txt
 Filesize:  3.02 KB
 Downloaded:  249 Time(s)


_________________
Time will tell...
Sooner or later...
Time will tell...

Back to top
View user's profile Send private message
Mortecha
Commander


Joined: 30 Nov 2006
Location: Brisbane, Australia

PostPosted: Sat May 26, 2007 4:17 pm    Post subject: Reply with quote  Mark this post and the followings unread

It ran flawlessly. I guess ill be behind the idea of using OpenGL as well



log.txt
 Description:

Download
 Filename:  log.txt
 Filesize:  1.17 KB
 Downloaded:  231 Time(s)


Back to top
View user's profile Send private message Visit poster's website
DonutArnold
General


Joined: 18 Jan 2005
Location: Finland

PostPosted: Sat May 26, 2007 7:42 pm    Post subject: Reply with quote  Mark this post and the followings unread

It ran like a dream. Btw, I think that those voxels needs more life with their colours...



log.txt
 Description:

Download
 Filename:  log.txt
 Filesize:  1.17 KB
 Downloaded:  242 Time(s)


Back to top
View user's profile Send private message
IVI
Commander


Joined: 25 Jun 2006
Location: Feilubin

PostPosted: Wed May 30, 2007 7:21 pm    Post subject: Reply with quote  Mark this post and the followings unread

it ran perfectly. very promising owrk Judeau, I am looking forward to the progress of your project Smile



log.txt
 Description:

Download
 Filename:  log.txt
 Filesize:  1.17 KB
 Downloaded:  210 Time(s)


_________________
"War.... war never changes....."

Back to top
View user's profile Send private message
Judeau
Commander


Joined: 28 Feb 2004

PostPosted: Wed May 30, 2007 8:14 pm    Post subject: Reply with quote  Mark this post and the followings unread


_________________
Micro TS
Portable, no campaign, movies or music, just the engine and needed resources for skirmish and lan.

Back to top
View user's profile Send private message Send e-mail Skype Account
Lightstorm
Light Infantry


Joined: 01 Mar 2007
Location: Dead and back Commander...Dead and back

PostPosted: Tue Aug 07, 2007 8:50 pm    Post subject: Reply with quote  Mark this post and the followings unread

why bother with voxels at all? someone should just make a program that turns voxels into 3d renders, we can already turn renders into voxels, why not voxels to renders?

or better yet we use alternating non isometric sprites! lol j/k



log.txt
 Description:
I'm pretty sure i can handle it, but am i reading the right thing?

Download
 Filename:  log.txt
 Filesize:  1.17 KB
 Downloaded:  207 Time(s)


_________________
Join My forum (please??)

Back to top
View user's profile Send private message Skype Account
Judeau
Commander


Joined: 28 Feb 2004

PostPosted: Tue Aug 07, 2007 10:24 pm    Post subject: Reply with quote  Mark this post and the followings unread

Lightstorm wrote:
why bother with voxels at all? someone should just make a program that turns voxels into 3d renders, we can already turn renders into voxels, why not voxels to renders?

or better yet we use alternating non isometric sprites! lol j/k


PLEASE, look at the date of the post before you.

_________________
Micro TS
Portable, no campaign, movies or music, just the engine and needed resources for skirmish and lan.

Back to top
View user's profile Send private message Send e-mail Skype Account
DeathRay2K
Commander


Joined: 01 Sep 2002
Location: Canada

PostPosted: Tue Aug 07, 2007 10:28 pm    Post subject: Reply with quote  Mark this post and the followings unread

Turning models into voxels, you lose all the information except, to some extent, the normals.
The only way to convert a voxel into a model, then, is to extrapolate the data from the shape of the voxel. In the simplest form, a voxel to model converter would simply make each voxel a vertex and attach adjacent vertices. The problem with this is that it would not look very good, and it would probably have problems that would need fixing in a model editor.
The ideal solution would analyze the voxel for curves and flat surfaces, and then use the analysis to recreate it in 3D. The problem with this is that it would be a lot of work, and may still need fixing.

There is no real reason for there not to be a voxel to 3D converter, its just that its more work than its worth.

_________________

Back to top
View user's profile Send private message Visit poster's website Skype Account
Lightstorm
Light Infantry


Joined: 01 Mar 2007
Location: Dead and back Commander...Dead and back

PostPosted: Tue Aug 07, 2007 10:50 pm    Post subject: Reply with quote  Mark this post and the followings unread

okay i feel stupid now, for some reason i thought that post was recent

_________________
Join My forum (please??)

Back to top
View user's profile Send private message Skype Account
Judeau
Commander


Joined: 28 Feb 2004

PostPosted: Tue Aug 07, 2007 11:09 pm    Post subject: Reply with quote  Mark this post and the followings unread

Lightstorm wrote:
okay i feel stupid now, for some reason i thought that post was recent


no problem, have a look around #Tongue

_________________
Micro TS
Portable, no campaign, movies or music, just the engine and needed resources for skirmish and lan.

Back to top
View user's profile Send private message Send e-mail Skype Account
Dupl3xxx
Commander


Joined: 22 Aug 2006
Location: somewhere south of the north pole

PostPosted: Sun Jan 06, 2008 6:18 pm    Post subject: Reply with quote  Mark this post and the followings unread

How did this get under my radar, this rules!

Note, this was on vista, with a nVidia 7100 with two screens at 1280x1024, so I am amazed!



log.txt
 Description:

Download
 Filename:  log.txt
 Filesize:  1.17 KB
 Downloaded:  181 Time(s)


_________________
This is a signature

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [18 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1861s ][ Queries: 15 (0.0146s) ][ Debug on ]