View previous topic :: View next topic |
Author |
Message |
Daaark DeleD PRO user
Joined: 01 Sep 2004 Posts: 2696 Location: Ottawa, Canada
|
Posted: Sun Mar 13, 2005 3:54 pm Post subject: |
|
|
I just made the lighting really quick so I could post an image. You don't have any directional lighting in your textured views so I needed something to show off the shapes. I'm just going to use realtime smooth shading off a light in the middle of the room in the real thing.
But for now when it's time for a screenshot, I save a new file and light it quick. |
|
Back to top |
|
|
Daaark DeleD PRO user
Joined: 01 Sep 2004 Posts: 2696 Location: Ottawa, Canada
|
Posted: Thu Mar 17, 2005 11:08 pm Post subject: |
|
|
Okay, got texture loading working. The tex coords were saved upside down though.
However, it's good that so far this is turning out exactly has I'd hoped. |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Fri Mar 18, 2005 9:55 am Post subject: |
|
|
Screenshot looks great, glad you got your normal working. Although I don't really get the code, what operator is /*=?
Just a small hint on your normal function: for performance, it would be smart to calculate invS (1/length), then multiply (*=) your three components. Lots more efficient than three divisions. Not that you'd care, because you store your normals anyway, but still |
|
Back to top |
|
|
Daaark DeleD PRO user
Joined: 01 Sep 2004 Posts: 2696 Location: Ottawa, Canada
|
Posted: Fri Mar 18, 2005 1:37 pm Post subject: |
|
|
Paul-Jan wrote: |
Screenshot looks great, glad you got your normal working. Although I don't really get the code, what operator is /*=?
Just a small hint on your normal function: for performance, it would be smart to calculate invS (1/length), then multiply (*=) your three components. Lots more efficient than three divisions. Not that you'd care, because you store your normals anyway, but still |
/*= is my favourite operator.. called the forum typo. |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Sat Mar 19, 2005 1:27 am Post subject: |
|
|
*hehehe* pfwww, for a moment there I thought there was a new c/c++ standard out I had missed |
|
Back to top |
|
|
Daaark DeleD PRO user
Joined: 01 Sep 2004 Posts: 2696 Location: Ottawa, Canada
|
Posted: Sat Mar 19, 2005 2:06 am Post subject: |
|
|
Paul-Jan wrote: |
*hehehe* pfwww, for a moment there I thought there was a new c/c++ standard out I had missed |
c--iq |
|
Back to top |
|
|
|