Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Nice graphics for demos
#3
Still having a few issues with lighting, I'm not totally sure I've got the transforms done in the right place, but until I can add a proper moving camera and can visualise the light source this is the best I can do.

This is an example of vertex lighting using a moving light source going back and forward
Its a simple diffuse, specular and emmisive set of textures.
I could add normal/bump mapping to it, but on a vertex based shader thats a bit pointless.....but that is the next thing to investigate when I go to fragment shading.

I want to compare performance with this vertex based method against a fragment based method.. Vertex lighting is usually faster than fragment lighting but it does depend on how many pixels are being drawn.

This is on a Pi4, but still using OpenGLES2.0 GLSL1.0 shaders

it is pretty Big Grin
Brian Beuken
Lecturer in Game Programming at Breda University of Applied Sciences.
Author of The Fundamentals of C/C++ Game Programming: Using Target-based Development on SBC's 



Reply


Messages In This Thread
Nice graphics for demos - by Brian Beuken - 12-12-2020, 07:18 PM
RE: Nice graphics for demos - by Brian Beuken - 12-13-2020, 05:39 PM
RE: Nice graphics for demos - by Brian Beuken - 12-14-2020, 02:54 PM
RE: Nice graphics for demos - by Brian Beuken - 12-14-2020, 10:46 PM
RE: Nice graphics for demos - by Brian Beuken - 12-15-2020, 09:04 AM
RE: Nice graphics for demos - by Brian Beuken - 12-15-2020, 12:03 PM
RE: Nice graphics for demos - by Brian Beuken - 12-15-2020, 01:03 PM
RE: Nice graphics for demos - by Brian Beuken - 12-16-2020, 11:23 AM
RE: Nice graphics for demos - by Brian Beuken - 12-16-2020, 10:29 PM
RE: Nice graphics for demos - by Brian Beuken - 12-19-2020, 09:13 PM
RE: Nice graphics for demos - by jomoengineer - 12-22-2020, 07:34 AM
RE: Nice graphics for demos - by Brian Beuken - 12-24-2020, 06:52 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)