Quantcast

Jump to content

» «
Photo

Making SketchUp models brighter ingame

20 replies to this topic
Puma06111991
  • Puma06111991

    asdfghjkl;

  • Members
  • Joined: 14 Mar 2006

#1

Posted 27 June 2009 - 04:01 PM

Okay. This tutorial is for SketchUppers, because SU-models usually turn out very dark ingame, even if they're prelighted. In this tutorial I'll show you how to fix this. No worries, it's super easy.

Step 1. Import your model into 3dsMax. First we check if your textures are still OK. Push the F10-button and click on "Render". If you don't get an error about missing textures and a render, you continue to step 2. It is possible that you get an error. In the error-screen you can see the names of the missing textures. First you need to check if your .3ds and your textures are in the same folder. If so, be sure that the names of the textures in SketchUp are the same as the .bmp:

user posted image

If this is allright and you still get an error when trying to render, you click "browse" in the error-screen, click on "add", search the folder where the textures are, double-click on one of the textures and click on "OK". Now the names of the missing textures in the error-screen should be gone. Click "Continue" and check out the render with the (hopefully) textured model.

Step 2. Push the m-button on your keyboard to open the material-editor. Click one of the spheres, click the pipette and then click on your model:

user posted image

You'll get a list of all textures that your model uses. The second-to-last 'thingie' in every line is a square with a color. Click on this square, put the color all up to white and click "OK". This must be done for all textures. Screen:

user posted image

If that's done, you select your model and click "Assign material to selection" in the material-editor-screen:

user posted image

Your model will turn white in the viewport and you won't see any changes on the renders, but ingame it should be as white as the original SA-models. This doesn't only work for map objects, but also for peds, weapons and vehicles.

You're done! After this you just export your model as usually. If you want to prelight if first, you can do that now. Remember, this works for all kinds of models in SA.

_Rob_
  • _Rob_

    Game Dev, Graphics Artist

  • Members
  • Joined: 24 Sep 2006
  • None

#2

Posted 27 June 2009 - 04:27 PM

Ahh finally i always wondered why, it never happens when you do a full map but on individual files it does, thanks puma very helpful this is one i will surely use cookie.gif

Spider-Vice
  • Spider-Vice

    I know you've been complaining, but you weren't ready.

  • Zaibatsu
  • Joined: 09 Oct 2006
  • Portugal
  • Contribution Award [GTA V]

#3

Posted 27 June 2009 - 04:31 PM

f*ck. I'm a a Sketchupper and now I know why it never appeared decently in game. Sometimes it appears only with white textures for some reason and everything is on the txd.

atsike7
  • atsike7

    Foot Soldier

  • Members
  • Joined: 01 Sep 2007

#4

Posted 27 June 2009 - 04:36 PM

Nice, there's more and more tutorials for Sketchuppers lately. icon14.gif

Puma06111991
  • Puma06111991

    asdfghjkl;

  • Members
  • Joined: 14 Mar 2006

#5

Posted 27 June 2009 - 06:13 PM

Ok, but has any of you guys tried it out already?

kal-el5676
  • kal-el5676

    Zombie Killa

  • Members
  • Joined: 02 Nov 2008

#6

Posted 27 June 2009 - 06:54 PM

my models actually usually turn out pretty bright, but this is good to know.

Puma06111991
  • Puma06111991

    asdfghjkl;

  • Members
  • Joined: 14 Mar 2006

#7

Posted 27 June 2009 - 07:36 PM

Well than you could try to set the diffuse color ( "the colored square's" ) a bit less bright, a greytone.

ParoXum
  • ParoXum

    Proud PC Gamer

  • Feroci
  • Joined: 28 Jul 2005
  • None
  • Best Texture/Model 2013 "SRt3 2012 Mipmap Edition"

#8

Posted 27 June 2009 - 08:07 PM

Have you any pic with before/after ingame ? I'm eager to know, but almost sure this trick doesnt change a thing.

Puma06111991
  • Puma06111991

    asdfghjkl;

  • Members
  • Joined: 14 Mar 2006

#9

Posted 27 June 2009 - 09:33 PM

Sure. Ped:

Before:

user posted image

After:

user posted image

Works for me...

supermortalhuman
  • supermortalhuman

    522A4EA9

  • BUSTED!
  • Joined: 09 Jun 2009

#10

Posted 27 June 2009 - 10:59 PM Edited by supermortalhuman, 27 June 2009 - 11:06 PM.

You get a brighter model, but you don't get any shadows or definition. Since you're going into max you ought to light the models. You can do that with tutorials on here (I think in that lighting release ParoXum made that led me here you didn't have a new enough version) and lots of tutorials online about how to setup a radiosity. There is one in the hosted section, under myriad islands that will give info and tutorials here that extend it to action too.

Also, I think that lighting solution in the myriad section is for max 7.

Edit: I see now, you are clearing colors sketchup puts on the vertex before applying light. nice fix.

_Rob_
  • _Rob_

    Game Dev, Graphics Artist

  • Members
  • Joined: 24 Sep 2006
  • None

#11

Posted 28 June 2009 - 10:07 AM

hmmn tried it on a ped and no change look exactly the same, im confused

ParoXum
  • ParoXum

    Proud PC Gamer

  • Feroci
  • Joined: 28 Jul 2005
  • None
  • Best Texture/Model 2013 "SRt3 2012 Mipmap Edition"

#12

Posted 30 June 2009 - 09:18 AM

It does work on PEDs because peds can export (& use) a value of diffuse color like vehicles (what you're changing here) since they're dynamically lit objects.

This definately wont work on map objects which are totally static for the lighting part. The equation for the prelighting which does not take in consideration the diffuse value of the objects materials :

It's simply a product around these : Vcol*TextureSourceCol

wink.gif

JostVice
  • JostVice

    realtime, not prerendered

  • Feroci
  • Joined: 30 Oct 2005
  • None

#13

Posted 30 June 2009 - 09:23 AM

QUOTE (ParoXum @ Jun 30 2009, 10:18)

This definately wont work on map objects which are totally static for the lighting part. The equation for the prelighting which does not take in consideration the diffuse value of the objects materials :

Actually, it will work, and it can brighten up the model, but its cheating. Watch out for how the ambient colors will multiply by the diffuse colors when ingame, on differents timecycs wink.gif

Anyway, use vertex colors, leave diffuse colors gray smile.gif

ParoXum
  • ParoXum

    Proud PC Gamer

  • Feroci
  • Joined: 28 Jul 2005
  • None
  • Best Texture/Model 2013 "SRt3 2012 Mipmap Edition"

#14

Posted 30 June 2009 - 09:25 AM Edited by ParoXum, 30 June 2009 - 09:52 AM.

Yeah it will work, until you use proper vertex color assignment. Which will overwrite those.

Also timecyc is another thing. It's something modulated by the game. But yeah the equation could look more like this :

TexSrc*Vcol*TimeCycDiffCol..


Puma: i'd like to see it confirmed on static objects tho, and static objects using prelighting wink.gif

Puma06111991
  • Puma06111991

    asdfghjkl;

  • Members
  • Joined: 14 Mar 2006

#15

Posted 30 June 2009 - 08:40 PM

Check my colosseum then smile.gif

_Rob_
  • _Rob_

    Game Dev, Graphics Artist

  • Members
  • Joined: 24 Sep 2006
  • None

#16

Posted 01 July 2009 - 02:05 PM

Any idea why it didn't work on my ped then?

supermortalhuman
  • supermortalhuman

    522A4EA9

  • BUSTED!
  • Joined: 09 Jun 2009

#17

Posted 01 July 2009 - 02:52 PM

I think maybe you forgot to check "vcol" in the script, maybe?

_Rob_
  • _Rob_

    Game Dev, Graphics Artist

  • Members
  • Joined: 24 Sep 2006
  • None

#18

Posted 01 July 2009 - 07:47 PM

vcol isn't mentioned in the tut, when do i do it and how

JostVice
  • JostVice

    realtime, not prerendered

  • Feroci
  • Joined: 30 Oct 2005
  • None

#19

Posted 02 July 2009 - 08:26 AM

vcol is used to export Vertex Color data. if you didn't assign any vertex color, the vertex color are most likely to be white (bright model)

_Rob_
  • _Rob_

    Game Dev, Graphics Artist

  • Members
  • Joined: 24 Sep 2006
  • None

#20

Posted 03 July 2009 - 06:33 PM

Nope my models too dark

OrgesProductions
  • OrgesProductions

    AlbanianMachine

  • Members
  • Joined: 09 Mar 2009

#21

Posted 05 July 2009 - 05:08 AM

QUOTE (Puma06111991 @ Jun 28 2009, 07:33)
Sure. Ped:

Before:

user posted image

After:

user posted image

Works for me...

textures are sweet but 3d models not great




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users