We are about to switch to a new forum software. Until then we have removed the registration on this forum.
So what I want to do is have an 3 dimensional object, which will look similar to this: http://designspiration.net/image/9732308922371/ The difference is that there won't be any lines and there will be gaps in between the triangle surfaces.
The goal is to put a lightsource in the middle of the object so the light will shine through the gaps of the triangle surfaces. After having done some research I'm not sure if this is even possible. Maybe you could help me and point me in the right direction.
Answers
I'm sure you have seen pointlight. https://processing.org/reference/pointLight_.html
If you draw your object faces with 2d shapes, making sure to leave gaps, and put a point light in the center it will "shine through".
The issue is that you wouldn't be able to see it because processing only shows light if it is reflecting off of something. Maybe you could put a rect behind it?
If you want a more visible solution maybe you could texture a sphere with some sort of light image and place it in the center?
If you're looking for lens flare check out these links: https://processing.org/discourse/beta/num_1251701551.html http://www.openprocessing.org/sketch/8084
Hey, thanks for the answer!
I already solved the problem by using a point light and an additional ambient light, which simulates the light on the outside.
However the lens flare links are really helpful!