Advice needed on my first Add-on

Post requests, images, descriptions and reports about work in progress here.
Topic author
meegja
Posts: 26
Joined: 27.08.2003
With us: 21 years 3 months
Location: The Netherlands

Advice needed on my first Add-on

Post #1by meegja » 05.09.2003, 18:22

Okay, here is my first Add-on: http://www.3dart4u.com/celestia/RT_52.zip , the RT_52 galaxy. Just some fantasy galaxy :)
But I still can not figure out on how to get my textures brighter. Other (real) objects/nebulas are way brighter?
I made this one also bright (I use Photoshop), but when in Celestia it's dull ... how can I make it "sparkle" more?
I did test the RT_52.zip in latest beta of Celestia. If anyone can make it brighter, please be my guest and please tell me how it's done? 8)
Menno
=====================
My 3D Art can be seen on
http://www.3dart4u.com
=====================
It can't rain all the Time

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

Post #2by selden » 05.09.2003, 22:45

Meegja,

Your image needs to be completely opaque in the areas where you want the brightest colors. According to the ImageMagick "identify" program, your png image has a "Matte Color" of grey75. This makes the entire image slightly transparent.

In other words, you need to create an Alpha channel matte for your png image which has values ranging from black (where you want the image to be completely transparent) to white (where you want the image to be completely opaque).

I don't know what the appropriate techniques would be in Photoshop. I use a much simpler paint program to create a separate 8bit grey-scale image whan I want a detailed Alpha channel. I then use a utility like NetPNG's pnmtopng or ImageMagick's composite to insert the grey scale image as an alpha channel in a color png image.

Does this help?
Selden

Topic author
meegja
Posts: 26
Joined: 27.08.2003
With us: 21 years 3 months
Location: The Netherlands

Post #3by meegja » 05.09.2003, 23:46

Thanx Selden!! It helps, yes and no. The programs you mention are all abracadabra for me. ImageMagick sounds interesting but after downloading and looking at it, I really didn't know how to handle 1 letter extensions? I am a pure Windows user, who is used to EXE and so on :wink:
But as I understand now, there has to be a mask / alpha channel. I just do not know how to put that in a PNG .... ah well, I keep on searching. And also keeping busy with my first Add on :)
Menno

=====================

My 3D Art can be seen on

http://www.3dart4u.com

=====================

It can't rain all the Time

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

Post #4by selden » 05.09.2003, 23:52

Never mind.

I just followed my own advice and got just as dim an image as you did. (Having no alpha channel is the same as having one that's all white: the picture is opaque.)

I then used a trivial 3DS model of a flattened cube created using Anim8or and the image was bright.

In other words, there's something in your model which is making the image dim.

When I use Anim8or to look at the model, I don't see anything out of the ordinary with the surface material definition: Anim8or shows the same values for properties like "Ambient" and "Diffuse" as it does for materials on models that are bright.

Unfortunately, my knowledge of 3D modelling is essentially zero, so someone else will have to help more.
Selden

Rassilon
Posts: 1887
Joined: 29.01.2002
With us: 22 years 10 months
Location: Altair

Post #5by Rassilon » 06.09.2003, 00:53

The best way to create transparent textures is making a Targa in Photoshop and turn it into a PNG in the Gimp...

Make an alpha channel with whites as solid and blacks as transparent...I tend to turn the image grey and paste it into the alpha channel...Save as 32 bit TGA and open the Gimp...Right click when in Gimp on the image and save as PNG...In photoshop its not recommended to do this as the alpha turns white when saved...

Unless someone has a better method, thats the only way I know of making the best transparent textures...

For 3ds files make sure before exporting that the diffuse channel of the objects texture is white and the opaque channel is at 99% with both filled with the above texture as is...
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!

Topic author
meegja
Posts: 26
Joined: 27.08.2003
With us: 21 years 3 months
Location: The Netherlands

Post #6by meegja » 06.09.2003, 01:49

I found it!!! It was indeed related on how the texture was used on the 3DS object and the conversion of it. :D Testure is now bright. No luck on the transparacy though, even not with TheGimp. Seems that a 3DS object always will be transparent, no matter what.
Okay, that is sorted plus that I manged to line up a bundle of stars along the gallexy ... was a bit of a struggle but I won!! :D
Updated Add On on http://www.3dart4u.com/celestia/RT_52.zip
Thanx everybody in advance for the advice!!! Comment/suggestions on my first Add on are always welcome!
And here is an image of the RT_52 galaxy:

Image
Menno

=====================

My 3D Art can be seen on

http://www.3dart4u.com

=====================

It can't rain all the Time

don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Post #7by don » 06.09.2003, 07:04

Howdy Menno,

All of you artsy / graphics / 3-D modeling folks simply amaze me. This looks really cool!!! Image

I am glad you won the struggle. :)

Thank you Menno!
-Don G.
My Celestia Scripting Resources page

Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.


Return to “Add-on development”