Author Topic: Is it possible...?  (Read 1541 times)

Offline RaivenWings

  • Dedicated Supporter
  • ***
  • Posts: 433
  • Floof-O-Meter: 16
  • xxraivenwingsxx.deviantart.com
    • View Profile
    • My DeviantArt
Is it possible...?
« on: July 12, 2011, 07:34:04 am »
This is more of a question and if it needs to be moved please feel free to do so :)

I really dislike how saving my presets as jpgs makes them look funky, y'know, like jpgs do. I tried saving it as a png and change the material file to test the body as a png but fh crashes on me when I try to look at the preset in the preset maker.
Is there any way I can save them as a different file type besides jpg, or does anyone know any tips to making the jpg files look more clear?

Please and thank you,
~ Rai
[/color]

Check out my preset commissions! Currently 50% off!]

Rukata

  • Guest
Re: Is it possible...?
« Reply #1 on: July 12, 2011, 12:11:26 pm »
My .jpg's come out fine, at least with Photoshop. What are you using to create your presets? The only program I know of that will ruin .jpg quality is Microsoft Paint.

Thunderheart

  • Guest
Re: Is it possible...?
« Reply #2 on: July 12, 2011, 12:52:05 pm »
Gimp does that, too. I used png on presets for a long time now, and never had problems with it, and the presets I did for others worked fine all the time too. There is rather something wrong with the mat script or your game.

Rukata

  • Guest
Re: Is it possible...?
« Reply #3 on: July 12, 2011, 01:06:50 pm »
Mhmm. This is the guideline for what to edit in the material files.
Note: where there is [] around something, that's where your code should vary a little. Other than that, this is pretty self explanatory.

Code: [Select]
material preset_[#1-10]_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture [FILENAME].[FILE-EXTENSION: png, jpg]
}
}
}
}
material preset_[#1-10]_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture [FILENAME].[FILE-EXTENSION: png, jpg]
}
}
}
}
material preset_[#1-10]_headMatL
{
technique
{
pass
{
texture_unit
{
texture [FILENAME].[FILE-EXTENSION: png, jpg]
}
}
}
}
material preset_[#1-10]_headMatR
{
technique
{
pass
{
texture_unit
{
texture [FILENAME].[FILE-EXTENSION: png, jpg]
}
}
}
}
material preset_[#1-10]_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture [FILENAME].[FILE-EXTENSION: png, jpg]
}
}
}
}
material preset_[#1-10]_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture [FILENAME].[FILE-EXTENSION: png, jpg]
}
}
}
}
material preset_[#1-10]_tailMat
{
technique
{
pass
{
texture_unit
{
texture [FILENAME].[FILE-EXTENSION: png, jpg]
}
}
}
}
material preset_[#1-10]_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture [FILENAME].[FILE-EXTENSION: png, jpg]
}
}
}
}

As an example, here's the material file for my preset that I'm making with png files, in preset folder 8.
Code: [Select]
material preset_8_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_8body.jpg
}
}
}
}
material preset_8_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_8body.jpg
}
}
}
}
material preset_8_headMatL
{
technique
{
pass
{
texture_unit
{
texture zanicoronihead.png
}
}
}
}
material preset_8_headMatR
{
technique
{
pass
{
texture_unit
{
texture zanicoronihead.png
}
}
}
}
material preset_8_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture Zanicoronieye.png
}
}
}
}
material preset_8_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture Zanicoronieye.png
}
}
}
}
material preset_8_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_8tail.jpg
}
}
}
}
material preset_8_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_8mane.png
}
}
}
}
I've only done the head/eyes so far, but you get the drift.

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Is it possible...?
« Reply #4 on: July 12, 2011, 02:19:07 pm »
Gimp does that, too. I used png on presets for a long time now, and never had problems with it, and the presets I did for others worked fine all the time too.

lol, yes, GIMP hates .jpg


But saving your file as a .png and changing some stuff in the material to match your image name and having .png after it should be working.

Offline RaivenWings

  • Dedicated Supporter
  • ***
  • Posts: 433
  • Floof-O-Meter: 16
  • xxraivenwingsxx.deviantart.com
    • View Profile
    • My DeviantArt
Re: Is it possible...?
« Reply #5 on: July 12, 2011, 11:02:41 pm »
Yes I use GIMP. Other than that I've tried messing with the coding a bit, and it looks perfectly fine but it just won't run them as png. I'll figure something out later, but thanks guys for the tips :)

Check out my preset commissions! Currently 50% off!]