Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Tools

Archive::Tools Archive area for Tools's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #16  
Old 09-19-2004, 10:05 AM
daeken_bb
Discordant
 
Join Date: Mar 2003
Location: Chambersburg, PA
Posts: 469
Default

Nice job

However, you seem to have your vertices wrong or something... It looks like it's in a mirror.
__________________
Keep me unemployed and working on OpenEQ, PM me about donating

Check out my deviantART page at http://daeken.deviantart.com/
Reply With Quote
  #17  
Old 09-19-2004, 10:12 AM
jbb
Hill Giant
 
Join Date: Mar 2003
Location: UK
Posts: 242
Default

Oh yes there are lots of things wrong. I was just pleased to get something that looked like it was at least coming from the correct triangles after a lot of work.

It originally rendered it going up and down the screen (I'm probably getting my x and z coordinates switched somewhere) so I put in a quick rotate to turn it through 90 degrees. Just a hack really to get something working. I need to figure out the exact problem and fix it rather than hack the symptom...

Also I expect most of the triangles are "inward" facing so you're probably seeing the far inside walls and not the top of the buildings at all. It's only intended to be renderered from inside the walls but withoug proper textures it's very hard to tell what you're looking at.
Reply With Quote
  #18  
Old 09-19-2004, 10:15 AM
daeken_bb
Discordant
 
Join Date: Mar 2003
Location: Chambersburg, PA
Posts: 469
Default

Well, it's a great start

Just to let you know, we do the same rotation in OpenEQ, so don't feel bad :P

It's just the way they store their vertices I guess.
__________________
Keep me unemployed and working on OpenEQ, PM me about donating

Check out my deviantART page at http://daeken.deviantart.com/
Reply With Quote
  #19  
Old 09-19-2004, 10:24 AM
jbb
Hill Giant
 
Join Date: Mar 2003
Location: UK
Posts: 242
Default

One question on texturing if you don't mind?

The "group" flield in your polygon structure in the TER file? Is that just an index to the appropriate texture? (Well the texture, bumpmap, effect etc. that you decoded in your other posting) or is it something more complicated? The group numbers I looked at all seem small enough to be indexes into that table?
Reply With Quote
  #20  
Old 09-19-2004, 10:35 AM
daeken_bb
Discordant
 
Join Date: Mar 2003
Location: Chambersburg, PA
Posts: 469
Default

Yep, that's a material group ID. If it's -1, then either leave it out, or render it with a pure color, at least until we figure out what we're supposed to do with those.
__________________
Keep me unemployed and working on OpenEQ, PM me about donating

Check out my deviantART page at http://daeken.deviantart.com/
Reply With Quote
  #21  
Old 09-19-2004, 11:32 AM
jbb
Hill Giant
 
Join Date: Mar 2003
Location: UK
Posts: 242
Default

Well I got it partly working.
I seem to be getting group indexes which are larger than the number of textures I've loaded, and also I'm getting a lot of missing triangles it seems.

But it looks nice

Reply With Quote
  #22  
Old 09-19-2004, 11:35 AM
daeken_bb
Discordant
 
Join Date: Mar 2003
Location: Chambersburg, PA
Posts: 469
Default

Looks pretty damn good so far. Nice work
__________________
Keep me unemployed and working on OpenEQ, PM me about donating

Check out my deviantART page at http://daeken.deviantart.com/
Reply With Quote
  #23  
Old 09-19-2004, 11:42 AM
jbb
Hill Giant
 
Join Date: Mar 2003
Location: UK
Posts: 242
Default

Thanks

I'm probably not going to go too much further with this although it's awfully tempting to fix the bugs, and implement lighting and bump mapping properly as well as a way to move around the map. But I don't have the time with work and all really, but I might be interested in helping out in a small way with your project should you need any help in the future.
Reply With Quote
  #24  
Old 09-19-2004, 11:44 AM
daeken_bb
Discordant
 
Join Date: Mar 2003
Location: Chambersburg, PA
Posts: 469
Default

Cool, thanks

Speaking of OpenEQ... I just fully finished the octree and culling code... it rocks
__________________
Keep me unemployed and working on OpenEQ, PM me about donating

Check out my deviantART page at http://daeken.deviantart.com/
Reply With Quote
  #25  
Old 09-20-2004, 05:03 AM
jbb
Hill Giant
 
Join Date: Mar 2003
Location: UK
Posts: 242
Default

Excellent. Does it speed up rendering much?

Hmm, still can't get the converter to work. I suppose I could build it under linux and compare the output files maybe.
Reply With Quote
  #26  
Old 09-20-2004, 07:48 AM
daeken_bb
Discordant
 
Join Date: Mar 2003
Location: Chambersburg, PA
Posts: 469
Default

Heh, it's so incredibly fast it's not even funny

Still stuff I can do... in particular, using vertex buffers where supported. Right now, each end octree node has a compiled display list on it that we execute to render that node, and replacing that with a vertex buffer in video RAM might help a bit.
__________________
Keep me unemployed and working on OpenEQ, PM me about donating

Check out my deviantART page at http://daeken.deviantart.com/
Reply With Quote
  #27  
Old 09-20-2004, 07:57 AM
Mongrel
Hill Giant
 
Join Date: Jul 2003
Location: Germany
Posts: 232
Default

Be careful, though: Since you have to group the faces by texture you might end up with many small vertex buffers, which won't help you much in VRAM. It all depends on the size of your octree leafs

The vertex buffer object (ARB) extension should be supported on almost all vid cards, even my old GF4 Ti 4200 supports it.
Reply With Quote
  #28  
Old 09-20-2004, 08:07 AM
daeken_bb
Discordant
 
Join Date: Mar 2003
Location: Chambersburg, PA
Posts: 469
Default

Hrm... yea...
I'm really new to doing advanced OpenGL optimization, so this is all new to me hehe. I'm mainly just experimenting and benchmarking right now to find the best way.
__________________
Keep me unemployed and working on OpenEQ, PM me about donating

Check out my deviantART page at http://daeken.deviantart.com/
Reply With Quote
  #29  
Old 09-20-2004, 10:20 AM
jbb
Hill Giant
 
Join Date: Mar 2003
Location: UK
Posts: 242
Default

I'm having big problems reading TER files properly at the moment.
I'm trying to decode "wallofslaughter.eqg"

I extract ter_fortress.ter from the file which is at offset 19733813 and decompressed size is 9425438 bytes.

It has 29 texture entries, 190961 vertexes, 165352 triangles.

The problem I have is that this seems to be wrong because when I calculate the start location of the vertex data it seems to work out in the middle somewhere of the vertex data so I'm assuming I'm getting either the counts or the total size of the "file" wrong.

If you are able to decode this EQG file properly can you check my numbers please?

Thanks.,
Reply With Quote
  #30  
Old 09-20-2004, 10:22 AM
daeken_bb
Discordant
 
Join Date: Mar 2003
Location: Chambersburg, PA
Posts: 469
Default

Are you skipping past the unknown data before the vertex list?
__________________
Keep me unemployed and working on OpenEQ, PM me about donating

Check out my deviantART page at http://daeken.deviantart.com/
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 09:30 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3