Page 1 of 1

PLEASE TEACH ME! Converting .jpg into .png textures

Posted: Mon Nov 14, 2016 7:00 am
by TheFilipinoFGPilot
Hi all!

I'm back! This is the number 1 and only problem in making my models, and thus, it makes my 3D buildings black in some parts of the day, because of a faulty lightmap, could anyone teach me how to do this? and also how to add night textures.

I am building my models via Sketch up 2015, exporting it as .3ds, then converting it to .ac in ac3d


Thanks!

Re: PLEASE TEACH ME! Converting .jpg into .png textures

Posted: Mon Nov 14, 2016 11:30 am
by SHM
If on windows just open in paint and save as .png

If you want to convert a set of images use this
https://sourceforge.net/projects/bulkimageconver/

Re: PLEASE TEACH ME! Converting .jpg into .png textures

Posted: Mon Nov 14, 2016 2:52 pm
by Catalanoic
Why convert to .3ds? you can save the skecthup model directly to .ac using this plugin (double sided version) and here the same plugin for single faced objects

"about the app of SHM" no need to install anything, if you are using Windows, open the jpg image with Paint and save it again but under PNG format, you will save some disk space. Under Linux, Mac you have a similar method Just like SHM says

"About black faces": you can directly edit with Notepad (or similar) the .ac file (no need to regenerate the file again) all the material lines with black faces (something like "rgb 0 0 0") replace with this:

Code: Select all

MATERIAL "MATERIAL_NAME" rgb 0.72 0.72 0.72 amb 0.8 0.8 0.8 emis 0.08 0.08 0.08 spec 0.2 0.2 0.2 shi 128 trans 0

Re: PLEASE TEACH ME! Converting .jpg into .png textures

Posted: Mon Nov 14, 2016 3:00 pm
by IAHM-COL
with linux I use imagemagick

Code: Select all

convert file.jpg file.png


can be batch processed, or scripted

Code: Select all

for image in ./*jpg
do
    convert   $image   $(basename $image .jpg).png
done

Re: PLEASE TEACH ME! Converting .jpg into .png textures

Posted: Mon Nov 14, 2016 3:03 pm
by Catalanoic
Thanks IAHM-COL for the linux script, may be usefull in some circumstances

Re: PLEASE TEACH ME! Converting .jpg into .png textures

Posted: Mon Nov 14, 2016 3:08 pm
by SHM
Catalanoic wrote:"about the app of SHM" no need to install anything, if you are using Windows, open the jpg image with Paint and save it again but under PNG format, you will save some disk space. Under Linux, Mac you have a similar method.

Care to read what I wrote? :|

Re: PLEASE TEACH ME! Converting .jpg into .png textures

Posted: Mon Nov 14, 2016 3:10 pm
by Catalanoic
Ah sorry.

Re: PLEASE TEACH ME! Converting .jpg into .png textures

Posted: Mon Nov 14, 2016 3:12 pm
by SHM
No problem :)

Re: PLEASE TEACH ME! Converting .jpg into .png textures

Posted: Tue Nov 15, 2016 7:26 am
by TheFilipinoFGPilot
For the first reply,

SHM, I have tried that already, but with no luck, after I converted it, there is no texture shown, it becomes white.


I'll try to do it again within the week since I have a new hectic schedule at college.

Re: PLEASE TEACH ME! Converting .jpg into .png textures

Posted: Tue Nov 15, 2016 11:40 am
by SHM
Are you able to see the .png properly?
Then try this:

Catalanoic wrote:"About black faces": you can directly edit with Notepad (or similar) the .ac file (no need to regenerate the file again) all the material lines with black faces (something like "rgb 0 0 0") replace with this:

Code: Select all

MATERIAL "MATERIAL_NAME" rgb 0.72 0.72 0.72 amb 0.8 0.8 0.8 emis 0.08 0.08 0.08 spec 0.2 0.2 0.2 shi 128 trans 0