Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Thu Mar 28, 2024 8:09 pm

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Sun Sep 07, 2008 1:10 am 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Can someone explain me how to create the tga files with fonts used by Raydium?
For examlpe font2.tga


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 07, 2008 1:39 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
See, for instance, font2tex here :
http://frustum.org/misc/


Top
 Profile  
 
PostPosted: Sun Sep 07, 2008 7:23 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Tested...
However it crash if I use a final resolution bigger than my screen HEIGHT...why? In this way I only can create 512+512 textures (I prefer 1024 or 2048)
Anyway... maybe we need a real function to render text to a texture :wink:


Top
 Profile  
 
PostPosted: Sun Sep 07, 2008 8:42 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
Not in the engine, IMHO !
Font rendering is complex, slow, and may requires a lot of "tuning" (and will create more lib dependencies). The only positive thing is that it allows "point" rendering, without any "blur glitches" like we have currently.

I learned recently that Team Fortress 2 use a shader to sharpen font rendering and all GUI :)


Top
 Profile  
 
PostPosted: Sun Sep 07, 2008 8:53 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Well not necesary a raydium function. We could tweak a source code an do a contrib application.

However a lot of game engines are using functions to use/load/render fonts on execution. They load the font, render it to a texture and then using it as raydium does. For example SDL does it (http://www.libsdl.org/cgi/docwiki.cgi/SDL_ttf).


Top
 Profile  
 
PostPosted: Sun Sep 07, 2008 9:02 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
I don't care that much about what other engines do or not ;)

As an external application (contrib or not), it's a very good idea, for sure. But bloating the engine itself for such thing seems completely useless to me.

PS: about other engines, I don't know if you've seen the last Unigine demo (tropic, http://unigine.com/download/) ? Have a quick look at the video, it's absolutely amazing !


Top
 Profile  
 
PostPosted: Mon Sep 08, 2008 1:46 pm 
Offline

Joined: Sun Oct 09, 2005 10:46 pm
Posts: 759
Hello,

I've try unigine demo, it run at 2 fps, without any crate :(

But it's beautifull.

Have a nice day.
Ouille.


Top
 Profile  
 
PostPosted: Mon Sep 08, 2008 3:26 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Hahahaha, good perfomance :lol:


Top
 Profile  
 
PostPosted: Mon Sep 08, 2008 5:17 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
... without any crate. I laughed hard ! :)

Looking at the video is probably the best way to enjoy that demo :) (until you own one of these 400 watt video cards)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 41 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group