 Err
#1 posted by DaZ [80.41.170.222] on 2008/11/07 22:45:14
You could have put some effort into this thread, this is pathetic.
 DaZ
#2 posted by JPL [82.234.167.238] on 2008/11/07 23:11:30
woshh: headshot :P
#3 posted by Scampie [24.158.1.74] on 2008/11/07 23:14:05
wow. seriously, Megaman suggestion a decent topic, and already Speedy is a dickbag and ruins it.
#4 posted by Trinca [89.181.106.56] on 2008/11/08 00:49:29
sex thread was better... :|
#5 posted by stevenaaus [203.55.33.219] on 2008/11/08 01:41:47
What does func think of SDL ? My opinion is, it has overhead compared to OpenGL, and bugs on platforms other than Linux, but it's not too bad. I'm a pretty shit C programmer though.
Trinca - don't enough people tell you you're an **** and should shut up a bit more ?
 Ressource Pools
#6 posted by megaman [92.73.97.182] on 2008/11/08 03:40:39
Only ever use ressource pools for really expensive objects in languages with garbage collection. The GC is much better optimised to free / remove / reuse instances than your code could ever be.
Negative example:
http://www.ziggyware.com/readartic...
I tried a pool some weeks ago on Vector3fs (i was using / creating / releasing lots of em each iteration), and it was way slower than the Java GC.
Positive example: native buffers in java are very slow to create. It's worth saving e.g. one float buffer that you fill with rotation matrices each frame and hand to ogl.
 Oh Yeah
#7 posted by megaman [92.73.97.182] on 2008/11/08 03:43:48
and if you aren't careful enough (very careful) - instead of the crashes when you use destroyed objects in c++ - you get weird bugs where one object gets used in multiple places...
 Megaman
#8 posted by SleepwalkR [222.124.35.205] on 2008/11/08 09:39:53
In Java, it also depends on the VM you are running on. Some VMs might be better than your code at pooling instances, others might not. I'm not sure whether the Java Spec has rules about how a GC must perform its duties.
#9 posted by Trinca [89.180.55.215] on 2008/11/08 11:01:25
stevenaaus go **** you ****
lol
 Sleepwalker
#10 posted by megaman [92.73.83.22] on 2008/11/08 12:15:26
yeah, that's probably right. but for a game.. i'd guess the majority of your players will use the Sun VM.
trinca, take your trolling to GA, or something. or maybe the drunk thread ;)
 Megaman
#11 posted by SleepwalkR [222.124.35.205] on 2008/11/09 11:13:03
Still, there may be differences across different platforms even for the Sun VMs for those platforms. You simply cannot make any assumptions if there is no spec.
 That
#12 posted by megaman [92.73.103.74] on 2008/11/09 13:54:06
school of thought leads nowhere. How do you optimise your code then?
 SDL
#13 posted by gb [89.27.200.251] on 2008/11/09 13:59:38
LH told me that SDL keeps out of the way as much as possible when it comes to drawing stuff. That sounds good, but personally I'll take a non-SDL engine over a SDL one any day. It's clear that there is *some* overhead, even if it's managed intelligently.
I'm still grateful for stuff like PRBoom etc that uses SDL. SDL is snakeoil, but it kinda works. Someone else, it might have been Qudos, said once that SDL was nice to work with.
Bottom line, if I can have an SDL engine or no engine, I'd take SDL...
There are bugs in Linux SDL, too, for example mouse issues where you get "locked" inside a narrow angle, or where you'll suddenly look straight down and start turning uncontrollably. It sometimes goes away when you pause and unpause the game a few times, in PRBoom at least. SDLQuake2 was pretty bad though.
#14 posted by Trinca [89.180.168.64] on 2008/11/09 16:38:32
megaman u´re right ;)
big hug my german friend :)
me quit this thread!!!
 Note:
#15 posted by metlslime [67.180.230.20] on 2008/11/09 22:07:41
cube and sauerbraten use SDL, they seem pretty solid in terms of mouse input.
#16 posted by stevenaaus [60.240.198.243] on 2008/11/10 06:26:29
... off-topic, but i'm going to update my howto shortly i hope. Here's a draft.
Suggestions ? GB.. Can't find your HexenII mapping suggestion anymore. What was it ? And have included a link to bjptools. Correct?? Sorry if the links are f-ed.
http://transact.dl.sourceforge.net...
http://downloads.sourceforge.net/u...
 Stevenaaus
#17 posted by gb [89.27.217.58] on 2008/11/10 21:32:13
Quest.
http://quest-ed.sourceforge.net/
bjptools link is correct, should probably go on shubhub or something... Don't know if those compile hexen2 stuff!
The FTE engine also runs NQ stuff and even Nehahra... even in software. That could be a valuable tip for many. Amazing engine, seems to have evdev mouse issues for me though.
Nothing about QC coding, modelling and texture making? I'll see if I can help you there, good FAQ!
 Megaman
#18 posted by SleepwalkR [88.70.40.254] on 2008/11/12 05:44:41
You simply cannot optimize Java code for all platforms by making assumptions about the VM. You can only really optimize by reading the specs carefully and by good programming. The VM does a lot of optimization for you anyway, so whenever you think you've done something clever, the VM might just remove it ;-). Java is not a language for tasks that need a lot of clever optimization IMO.
Look at LWJGL for example, namely their math package. They use a clumsy design for mutable / immutable objects and direct field access, thus breaking some design principles because they measured the performance of dfa against property accessors and came to the result that the former is faster. We tested this on different platforms and had entirely different results. There's just no point in this.
 Hmm
#19 posted by megaman [92.73.83.43] on 2008/11/12 15:40:40
I don't really know about the lwjgl math lib, but the JME guys were doing stuff in their math libs that looked questionable to me.
Turns out my profiling shows they're right, on both linux and windows, on two entirely different machines. (both sun vm though, but i guess 99% of my users will use that.)
The changes i made after profiling sped up my game a LOT. Again, on both machines.
Your POV just doesn't seem very 'real world' (at least in the games world) to me.
 Oh
#20 posted by megaman [92.73.83.43] on 2008/11/12 15:45:48
to clear things up: of course i'm coding all stuff up first (with performance in mind, but not doing any low level optimisations) and then check where the bottle necks are. Imho you get a pretty good idea of what parts you can optimise (and how you do it) that way. And it's the 'real world' way, especially if you test on several systems.
Btw, your argument "cannot optimize ... code for all platforms" is true for ALL languages, and still it's pretty.. common to optimise c++, isn't it? that's with even MORE variety in the underlying architectures, etc.
 Npr Quake
#21 posted by stevenaaus [60.240.198.243] on 2008/11/14 23:42:21
Someone should fix up NPRQuake. It's pretty cool. For me.. mileage with the different renderers varies. I used to have "ainpr" working, but it's busted now. ... might do it one day.
 Yeah...
#22 posted by metlslime [64.175.155.252] on 2008/11/14 23:51:59
it was a cool idea, but didn't have the long-term maintenance and polish of some other engines. I think it was just a proof of concept made for a university class or something.
 NPR Source
#23 posted by Preach [86.150.196.117] on 2008/11/15 00:02:31
It's actually pretty easy to create the dlls that create new renderers for NPR, so I encourage people to check it out. I managed to modify the blueprint renderer so that the randomly selected edges to be arrowed/numbered weren't randomly reselected each frame, which got rid of so much flicker. The actual code I used was an enormous hack, but the result seemed better to me, and I can see how someone would code it correctly now...
#24 posted by Spirit [213.39.146.214] on 2008/11/15 00:16:17
FTE has some modes like this. And I think some other engine too (QMB?).
 Fte
#25 posted by stevenaaus [60.240.198.243] on 2008/11/15 10:30:03
I tried compiling FTE from CVS yesterday...
Maybe i'm doing something wrong, but "make gl-rel" needed plenty of niggles fixed. At linking i got bored and gave up when it spewed
[linking]
./release/gl_linux/pr_csqc.o: In function CSQC_StartSound':
pr_csqc.c:(.text+0x30e7): undefined reference o `PR_TempString
pr_csqc.c:(.text+0x3174): undefined reference to `PR_TempString
etc x 100
 Hmm
#26 posted by megaman [92.73.84.57] on 2008/11/15 15:03:31
i dunno, can we please not make this into a 'q engine support thread'? ;)
 Free RPG Rules
#27 posted by megaman [92.73.84.57] on 2008/11/15 15:05:32
 Networking
#28 posted by megaman [92.73.84.57] on 2008/11/15 15:08:13
 AI - Steering Behaviours
#29 posted by megaman [92.73.84.57] on 2008/11/15 15:14:02
 Hmm Description
#30 posted by megaman [92.73.84.57] on 2008/11/15 15:19:13
first one is a student's library iirc building on the second.
which is some guy who worked on dungeon keeper2 and used the steering behaviours there. The paper is very practical and describes what they did to get the system working nicely and how they combined it. worth a read if you're interested in actually using #4
3 is the course overview page where that guy held a talk
4 is the original reynolds paper.
i was using this in my project/paper i just completed a few days ago.
 Loads Of Stuff
#31 posted by megaman [92.73.87.246] on 2008/11/21 13:42:27
Mostly not read yet.
Lightweight Procedural Animation with Believable Physical Interactions Ian Horswill 2008 http://www.cs.northwestern.edu/~ia...
Artificial Intelligence and the Future of Games as an Expressive Medium http://www.youtube.com/watch?v=Psv...
GLee GLee (GL Easy Extension library) is a free cross-platform extension loading library for OpenGL http://elf-stone.com/glee.php
Real-time Shadow Algorithms and Techniques http://developer.nvidia.com/object...
Modernizing the Quake2 renderer http://jdolan.dyndns.org/quake2wor... wiat, that's from jdolan.
Order your graphics draw calls around! http://realtimecollisiondetection.... (normally don't like the guy)
Ray Tracing News "Light Makes Right" November 8, 2008 http://tog.acm.org/resources/RTNew...
 Hmm Networking
#32 posted by megaman [92.73.87.246] on 2008/11/21 13:46:32
i skimmed through the q3 networking article in class some days ago. one thing i didn't get was how they transmit events. They need to make sure SOMETHING reaches the client, so instead of doing some sophisticated system that handles events seperately from throwaway data (like tribes2 does), they just check that every packet reaches it? someone enlighten me, or i need to reread the description ;)
 Lol
#33 posted by RickyT23 [81.132.88.108] on 2008/11/21 15:12:16
Can you do skeletal animation with QuakeC?
Within the standard engine limits?
Somebody figure out how to do it!!! :-)
#34 posted by Trinca [194.65.24.228] on 2008/11/21 15:26:13
RickyT23 ask madfox he might now something about it!!!
 Only In Horrible Ways
#35 posted by Preach [81.153.71.179] on 2008/11/21 20:23:02
To do skeletal animation in standard qc you'd first have to make each bone a seperate entity, as they need to be able to move individually. Once you've done that, each bone has to have it's own model assigned, so you can't have any triangles which span joints on the bones. This severely restricts what you can do to make realistic organic models. You could do a robot a little more easily. You're also going to be expending a lot of entities on each model, so you'll hit the 600 mark in no time.
Once you've got over that, you have to actually program it in qc, which is bound to be painful considering qc has no support for arrays to store animation sequences in. You also have to battle with the engine, which by default only uses an 8 bit integer for sending rotation angles. This means any rotation you do will show up with a level of precision worse than 1 degree.
Basically, it won't work all that well. Someone did create a quake ragdoll style mod called "Sagdoll" which did pretty much follow this idea, I think there's a link to it on the qexpo site.
Things aren't much better in custom engines. Darkplaces supports some model formats with skeletal animation. But there's currently no facility to control the bones individually from qc, it's still just frame selection. The benefit of bones is to read orientations and attach other entities to them(plus smaller file sizes).
 Skeletal Animation
#36 posted by MadFox [84.26.60.178] on 2008/11/21 21:40:56
When i worked on the Bones model, I converted the 3d model to 3dfx. Having an animation studio, which imports dfx I need only a standard model to create all animation frames from this base model.
These can be imported to QMLE and then rearanged to qc scripting.
An easier way can be, like I did with the ZDoom models, to open them in QMLE, and then copy some frames. THe copied frame you can change by moving the vertexes, so sugesting a moving patern.
I believe Milkshape has a way to use skeleton animation, but I never succeeded in finding out how.
 Sagdoll
#37 posted by Lardarse [62.31.165.111] on 2008/11/27 09:55:33
Has a thread at i3d
 I
#38 posted by megaman [92.73.106.33] on 2008/11/28 02:29:36
don't get it.
#39 posted by MadFox [84.26.168.11] on 2008/11/28 03:27:32
first there has to be something before you can or can't get it?
 Oh
#40 posted by MadFox [84.26.168.11] on 2008/11/28 03:29:58
sorry, it's programming. I didn't see.
 Just Saw This And Thought It Might Be A Good Link
#41 posted by Spirit [80.171.7.110] on 2008/12/11 18:47:34
 Very Interesting
#42 posted by Spirit [80.171.83.157] on 2009/03/24 18:59:43
http://ve3d.ign.com/articles/news/...
Many different interesting and thoughtful bits in this. Highly recommended to anyone with a remote interest in game design.
#43 posted by Spirit [213.39.158.35] on 2009/04/07 21:10:26
Did you know that Michael Abrash's Graphics Programming Black Book was available for free? I did not and I like it (I understand about 5%!).
http://www.gamedev.net/reference/a...
 Hmm Yeah I Knew
#44 posted by bear [94.255.218.107] on 2009/04/07 21:52:50
Even if it's full of general optimization tips I'd not recommend reading all of it unless you find the antique examples terrible exciting.
10+ years ago I had a bad habit of reading programming books without actually writing much code myself (I think understand what I just read so I'll just keep on reading!) and I still have the paper copy around somewhere. I did pick it up to look at his bresenham's line drawing algo when doing a simple drawing program on the nintendo ds.
#45 posted by Willem [24.199.192.130] on 2009/04/07 22:01:15
Yeah, it's a good book but very out dated now. However, it DOES contain a bunch of Quake development tidbits and stories that I re-read from time to time. Like Carmack coming up with the BSP idea, the VIS break through, all the things they tried to get the best renderer, etc.
 Abrash's Black Book...
#46 posted by metlslime [64.175.155.252] on 2009/04/07 22:02:44
was very interesting when i borrowed it from a friend a few years ago. Great to see it's online for free now, but that page seems to just give an ASP error right now...
 More Books
#47 posted by megaman [84.134.173.41] on 2009/04/07 23:17:24
|