Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / AGK Light Question

Author
Message
aviles22
10
Years of Service
User Offline
Joined: 1st Dec 2013
Location: New Jersey, USA
Posted: 13th May 2014 03:25
I am starting my new horse racing game and I have setup a flat grass terrain. My models for now just have 1 basic UV texture and they look pretty good with no lights but I plan to create normal maps and maybe use shaders on them when I get more familiar with this in the future. I used Blender to create them and have a couple questions:

1) What is some basic light setup code I can use in AppGameKit to replicate sunlight across my terrain?

2) If I apply materials in Blender on my object, will they be rendered the same in AppGameKit and if not how is this achieved?
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 13th May 2014 09:35 Edited at: 13th May 2014 09:35
i would use CreateLightDirectional or set vertexcolors.
also lens flares effect with sprites looks nice.

blender was made for raytracing.
what blender exports in obj files will maybe used in opengl.
see atlas texture from minecraft, a good way to use a single texture for all. it just use the uv's to paint much surface textures of all kind.

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670

Login to post a reply

Server time is: 2024-04-28 01:53:01
Your offset time is: 2024-04-28 01:53:01