3D model help

Post requests, images, descriptions and reports about work in progress here.
Topic author
Tuefish
Posts: 95
Joined: 27.02.2007
With us: 17 years 8 months
Location: Just a little to the left of the middle of nowhere, Southern California, USA

3D model help

Post #1by Tuefish » 07.01.2010, 10:37

So, I have recently picked Celestia back up and dusted off the addons I had been working on, I also picked up Wings3d, and having much more understanding of how things work, knocked up a small model for an orbital habitat. However, I can't get the textures to cooperate, I've tried using both CMOD and 3DS formats, to no avail.
To illustrate my problem, I have two pictures:
First, the desired result:
Image

Next, the invariable outcome:
Image

Any hints or suggestions?
"Over Seventy earths spinnin' round in the galaxy, and the meek have inherited not a one."
-Malcolm Reynolds

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Re: 3D model help

Post #2by Fenerit » 07.01.2010, 13:08

Hi Tuefish, from the second image the problem is unclear:
1) is the model "out of center"?
2) Is the texture too bright?

Can you please post an image more resized in order to fit the forum's framework?
Never at rest.
Massimo

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Re: 3D model help

Post #3by selden » 07.01.2010, 14:48

It looks to me like Celestia is being confused by translucent sections. This is a problem which has not yet been resolved completely. Transparent meshes are not always properly depth sorted.

If the transparency is entirely a result of using an alpha channel in the texture, Celestia usually does a better job of depth sorting if you set the transparency of the material itself to 0.999 instead of 1.0.
Selden

Topic author
Tuefish
Posts: 95
Joined: 27.02.2007
With us: 17 years 8 months
Location: Just a little to the left of the middle of nowhere, Southern California, USA

Re: 3D model help

Post #4by Tuefish » 08.01.2010, 02:23

Selden,
You are correct, Celestia seems to rendering the whole thing transparent, when the domes are the only part that should be transparent.
But I am unable to find the correct field to enter the transparency, please forgive my ineptitude, as this is my first time working with 3D software.
The Cmod file simply reads:

Code: Select all

#celmodel__ascii

material
diffuse 1 1 1
specular 1 1 1
texture0 "sphere14.png"
end_material

mesh
vertexdesc
position f3
normal f3
texcoord0 f2
end_vertexdesc

with the rest being the model itself.
Any help is greatly appreciated.
"Over Seventy earths spinnin' round in the galaxy, and the meek have inherited not a one."

-Malcolm Reynolds

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Re: 3D model help

Post #5by Fenerit » 08.01.2010, 09:10

Sorry Tuefish, probably you have a 16:9 monitor and the image is fit well. The set for transparency is

Code: Select all

#celmodel__ascii

material
diffuse 1 1 1
specular 1 1 1
opacity 0    # (0 = transparent, 1 = opaque)
texture0 "sphere14.png"
end_material

mesh


But, be sure that the png image be 24 bit not 32 bit. What mean this; your png image must be an "unique level", nor an image copy/pasted upon a new transparent canvas , otherwise the 32 bit alpha layer will be hold and the resulting 3d mesh on which the image is mapped will be managed by Celestia as transparent.
Never at rest.
Massimo

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Re: 3D model help

Post #6by Fenerit » 08.01.2010, 10:08

Another thing, from your CMOD settings, seem that the model is an unique mesh; this is no good because you cannot set transparencies separately; you would make your model at least by two meshes: one for the dome (transparents, so that texture isn't required) and one for the wings (textured 24 bit, so will be opaque, even without to set this latter into the field).
Never at rest.
Massimo

Topic author
Tuefish
Posts: 95
Joined: 27.02.2007
With us: 17 years 8 months
Location: Just a little to the left of the middle of nowhere, Southern California, USA

Re: 3D model help

Post #7by Tuefish » 10.01.2010, 13:07

Thanks everyone. I finally got it sorted out. if I ever get my addon finished, I'll upload it to the motherlode.
"Over Seventy earths spinnin' round in the galaxy, and the meek have inherited not a one."

-Malcolm Reynolds


Return to “Add-on development”