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
  #1  
Old 07-06-2004, 02:10 PM
sandy
Hill Giant
 
Join Date: Oct 2002
Posts: 212
Default problem of texture rendering in wld files

[img]www.projecteq.net/files/sandy/karnorbug.jpg[/img]

as you see i'm trying to render the karnor zone, but i have an issue i really don't understand, some polygons don't care the uv coords taken in the wld and render with tiny textures like on the screenshot !

did i miss a value in the wld files that controls that ?

I divide all u and v i take from files by 256.0f and all the polygons I process seems to have good mapping values and render well

so why does some polygons render so tiny ???

any idea ?
__________________
Sandy
Reply With Quote
  #2  
Old 07-06-2004, 03:37 PM
Windcatcher
Demi-God
 
Join Date: Jan 2002
Posts: 1,175
Default

I just went over the OpenZone code. First, make sure you're treating the texture coordinates as unsigned values. Second, check to see if the .WLD is an old-format or new-format file. In new-format files the texture coordinates are 32 bits instead of 16 bits. However, you're probably already getting that right or you probably wouldn't be able to read the .WLD file.

I suspect that the 256 multiplier might have to do with the texture size. When I wrote OpenZone all textures were 256x256, but I'm not sure what would happen if the texture was 512x512 instead, for instance. You *might* have to divide by 512 then, but I'm not sure. My gut tells me that it's a signed vs. unsigned problem.
Reply With Quote
  #3  
Old 07-07-2004, 12:28 AM
sandy
Hill Giant
 
Join Date: Oct 2002
Posts: 212
Default

woot thank you it was that =)
I have a nice karnor now !
__________________
Sandy
Reply With Quote
Reply


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 10:47 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