MrIslomaniac Posted February 14, 2010 Posted February 14, 2010 A simple point light in the middle of my scene and a loaded model of a sphere (i also tried create sphere,same result) returns this: http://img535.imageshack.us/img535/3923/sun.jpg This is for a school project, where the sun in the middle of the scene casts shadows on the planets aroound it. The sun you see in the picture is in Vec3(0,0,15). I need help -.- Quote
wh1sp3r Posted February 14, 2010 Posted February 14, 2010 what about averaging normals on your sphere ( smoothing groups ) are you using normal map for sphere too ? Quote -= Phenom II X4 965 3.4Ghz - ATI HD5870 - 6 GB DDR3 RAM - Windows 8 Pro 64x=- Website: http://www.flamewarestudios.com
Marleys Ghost Posted February 14, 2010 Posted February 14, 2010 I just tried somethng like this in the editor. Simple sphere created in UU3D textured with some sun texture off the net. .mat file texture0="abstract::sun_tex.dds" blend=0 depthmask=0 depthtest=0 castshadows=0 shader="abstract::mesh_diffuse.vert","abstract::mesh_diffuse.frag" Result in editor with a pointlight placed in its centre. Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head"
Niosop Posted February 14, 2010 Posted February 14, 2010 I want a space monster truck! I could drive around and crush little bitty planets that get in my way. Quote Windows 7 x64 - Q6700 @ 2.66GHz - 4GB RAM - 8800 GTX ZBrush - Blender
MrIslomaniac Posted February 14, 2010 Author Posted February 14, 2010 I think that the mat file has to be changeg, just like mg's, but unfortunately microsoft office access table is assigned to .mat files and i can't open them ... =( File Extension .MAT - Microsoft Access Table Shortcut //Ok got that working now The light somehow isn't. can you send me the model you are using? maybe that will work ... //I just tried the model in the editor as well and there it works oO something i have to consider when putting this in the .exe? //light and sun: TEntity cam=CreateCamera(); CameraClearColor(cam,Vec4(0,0,1,1)); TLight light1 = CreatePointLight(1000,0); //and here is the rendering loop: UpdateWorld(); //Render the scene SetBuffer(buffer); RenderWorld(); //Render lighting SetBuffer(BackBuffer()); RenderLights(buffer); //Swap the front and back buffer Flip(0); Quote
VicToMeyeZR Posted February 15, 2010 Posted February 15, 2010 I think that the mat file has to be changeg, just like mg's, but unfortunately microsoft office access table is assigned to .mat files and i can't open them ... =( File Extension .MAT - Microsoft Access Table Shortcut //Ok got that working now The light somehow isn't. can you send me the model you are using? maybe that will work ... //I just tried the model in the editor as well and there it works oO something i have to consider when putting this in the .exe? You can go to Folder Options > File Types > scroll to MAT and click change, if that not what you did already. Quote AMD Phenom II x6 1100T - 16GB RAM - ATI 5870 HD - OCZ Vertex 2 60GB SSD
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.