PLEASE TEACH ME! Converting .jpg into .png textures

Building new buildings, airports, mowing lawn on runways ... all that kind of things to create the world
User avatar
TheFilipinoFGPilot
Posts: 59
Joined: Sun Sep 18, 2016 1:31 am
Location: Cebu City, Philippines

PLEASE TEACH ME! Converting .jpg into .png textures

Postby TheFilipinoFGPilot » Mon Nov 14, 2016 7:00 am

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!

User avatar
SHM
Posts: 1960
Joined: Mon Sep 14, 2015 3:32 pm
Location: India

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

Postby SHM » Mon Nov 14, 2016 11:30 am

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/
FG Pilot (2011-2018)
Prepar3d (2015 - 2023)
MSFS2020 (2020 - )
Image

User avatar
Catalanoic
Posts: 251
Joined: Sat Dec 12, 2015 11:33 am

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

Postby Catalanoic » Mon Nov 14, 2016 2:52 pm

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
Last edited by Catalanoic on Mon Nov 14, 2016 3:12 pm, edited 1 time in total.

User avatar
IAHM-COL
Posts: 6455
Joined: Sat Sep 12, 2015 3:43 pm
Location: Homey, NV (KXTA) - U.S.A
Contact:

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

Postby IAHM-COL » Mon Nov 14, 2016 3:00 pm

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
https://raw.githubusercontent.com/IAHM-COL/gpg-pubkey/master/pubkey.asc

R.M.S.
If we gave everybody in the World free software today, but we failed to teach them about the four freedoms, five years from now, would they still have it?

User avatar
Catalanoic
Posts: 251
Joined: Sat Dec 12, 2015 11:33 am

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

Postby Catalanoic » Mon Nov 14, 2016 3:03 pm

Thanks IAHM-COL for the linux script, may be usefull in some circumstances

User avatar
SHM
Posts: 1960
Joined: Mon Sep 14, 2015 3:32 pm
Location: India

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

Postby SHM » Mon Nov 14, 2016 3:08 pm

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? :|
FG Pilot (2011-2018)
Prepar3d (2015 - 2023)
MSFS2020 (2020 - )
Image

User avatar
Catalanoic
Posts: 251
Joined: Sat Dec 12, 2015 11:33 am

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

Postby Catalanoic » Mon Nov 14, 2016 3:10 pm

Ah sorry.

User avatar
SHM
Posts: 1960
Joined: Mon Sep 14, 2015 3:32 pm
Location: India

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

Postby SHM » Mon Nov 14, 2016 3:12 pm

No problem :)
FG Pilot (2011-2018)
Prepar3d (2015 - 2023)
MSFS2020 (2020 - )
Image

User avatar
TheFilipinoFGPilot
Posts: 59
Joined: Sun Sep 18, 2016 1:31 am
Location: Cebu City, Philippines

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

Postby TheFilipinoFGPilot » Tue Nov 15, 2016 7:26 am

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.

User avatar
SHM
Posts: 1960
Joined: Mon Sep 14, 2015 3:32 pm
Location: India

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

Postby SHM » Tue Nov 15, 2016 11:40 am

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
FG Pilot (2011-2018)
Prepar3d (2015 - 2023)
MSFS2020 (2020 - )
Image


Return to “Scenery Development”

Who is online

Users browsing this forum: No registered users and 11 guests