Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Arkantos

Avatar / Picture

Registered:
Posts: 457
Reply with quote  #1 
I have a question for those of you who are familiar with the 3D modeling in Artemis. I've been working on a utility to add to ArtClientLib that will generate top-down silhouettes of the ships like you see in the stock client. The idea was to read all the polygons out of the file and convert them to 2D simply by ignoring one axis (the Y axis, if I understand correctly). The problem is, so far I've been unable to get it to render anything close to the actual silhouettes you see in the game, so I'm wondering if there's something important that I'm missing. Any thoughts?
MarkBell

Avatar / Picture

Administrator
Registered:
Posts: 1,955
Reply with quote  #2 
That's pretty much what I'd expect, TBH. That's what Artemis does with the models, and in general it works with non-stock dxs files.

In fairness, though, right now that functionality is slightly broken in Artemis proper for some non-stock models. For some reason, some models (tending to be the ones that are significantly larger or smaller than the stock ships in deled itself) render with very odd artifacting.

__________________
Note - this is in no way intended to be an official position of Thom or Artemis, as I am not an official representative of the creator or game.
Arkantos

Avatar / Picture

Registered:
Posts: 457
Reply with quote  #3 
Well, I guess I'm just doing something wrong, then! [smile] I'll have to keep fiddling with it, I suppose.
Arkantos

Avatar / Picture

Registered:
Posts: 457
Reply with quote  #4 
Found the problem: There was a tan() where I was supposed to be using atan()! So I've got it generating images (both wireframes and silhouettes), and they look great... at least, most of them do. There are a few that have come out a little odd:

arvonian carrier.png  biomech stage 1.png  biomech stage 4.png  kralien cruiser.PNG 

The rest of them look fine, but these four have this weird "broken up" appearance. There's probably something I'm not reading correctly in the .dxs file.

Arkantos

Avatar / Picture

Registered:
Posts: 457
Reply with quote  #5 
Scratch that; I figured out what I was doing wrong. My code was ignoring any polygons that didn't have exactly three vertices. (Turns out some have more.)
MarkBell

Avatar / Picture

Administrator
Registered:
Posts: 1,955
Reply with quote  #6 
Nice! I like the idea of wireframe icons, actually, that sounds fun. Now if we could only figure out why the stock game's overhead icon generation has issues with some mod files....
__________________
Note - this is in no way intended to be an official position of Thom or Artemis, as I am not an official representative of the creator or game.
Fish Evans

Registered:
Posts: 361
Reply with quote  #7 
Quote:
Originally Posted by MarkBell
For some reason, some models (tending to be the ones that are significantly larger or smaller than the stock ships in deled itself) render with very odd artifacting.


Workaround:
Scale the ship down in DelD so its no longer/wider then any of the stock ships (keeping the ratio between XYZ naturaly). Then use the Scale factor in the Vessal Data.xml to control relative scale in game... kinda Like normalizing a sound file then scaling it based on position.
MarkBell

Avatar / Picture

Administrator
Registered:
Posts: 1,955
Reply with quote  #8 
True 'nuff!  I was pointing out an issue with Artemis' icon render engine in general, but that is what I've been using as a workaround.

I wish that was the complete fix, though - it helps, but even with ships scaled in DeleD to be the same length as the Light Cruiser, Artemis still generates weird render artifacts with some meshes.  Again, not all of them, but some of them.

I wonder, actually, if it has to do with Arkantos' triangular polygon issue.  I seem to recall seeing quadrilateral polygons on stock ships, tho.  Hm.

__________________
Note - this is in no way intended to be an official position of Thom or Artemis, as I am not an official representative of the creator or game.
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.