That and im just a huge Trekkie hah. I want to turn this Engine into a sort of No Mans Sky / Elite Dangerous typ of Game, infinite content and the joys of flying through 0 G enviroments
Search found 130 matches
- Sat Jul 13, 2024 2:47 pm
- Forum: Games and Creations
- Topic: 3D Engine and Blinn Phong Lighting Demo
- Replies: 3
- Views: 5237
- Fri Jul 12, 2024 11:14 am
- Forum: Support and Development
- Topic: 3D on the GPU [solved]
- Replies: 4
- Views: 3351
Re: 3D on the GPU
I would still recommend g3d. It just provides the tools to easily do 3D. It isn't gonna replace your engine. You'll still need to create an engine. It's just more of a method for drawing stuff in 3D vs. Löve's normal built-in 2D drawing functions. It's basically just: Create a 3D object from a mode...
- Wed Jul 10, 2024 11:32 am
- Forum: Games and Creations
- Topic: 3D Engine and Blinn Phong Lighting Demo
- Replies: 3
- Views: 5237
3D Engine and Blinn Phong Lighting Demo
I have programmed a 3D engine with Blinn Phong Lighting. Disclaimer ( I copied g3d´s mesh loader as i think parsers are boring, all other code is mine) smoothshaded.PNG Per Vertex.png When looking at the fps counter please take into consideration that none of this is optimized and i dont know what i...
- Sat Jul 06, 2024 1:40 pm
- Forum: Support and Development
- Topic: Variable from vertex to pixel shader.
- Replies: 3
- Views: 1834
Re: Variable from vertex to pixel shader.
Should be something like this. In your vertex shader out float myval vec4 position( mat4 transform_projection, vec4 vertex_position ) { myval = ... } In your fragment shader in float myval vec4 effect(vec4 color, Image tex, vec2 texture_coords, vec2 screen_coords) { ... use myval ... } The value wi...
- Sat Jul 06, 2024 6:59 am
- Forum: Support and Development
- Topic: Variable from vertex to pixel shader.
- Replies: 3
- Views: 1834
Re: Variable from vertex to pixel shader.
Hello i want to compute the normal to lighting direction dotproduct inside of my vertex shader and then have this value used in the pixel shader for simple lighting but i cant seem to find a way to do this. On stackoverflow they suggest modifying the geometry shader inbetween the two to pass the va...
- Sat Jul 06, 2024 6:59 am
- Forum: Support and Development
- Topic: Variable from vertex to pixel shader.
- Replies: 3
- Views: 1834
Variable from vertex to pixel shader.
Hello i want to compute the normal to lighting direction dotproduct inside of my vertex shader and then have this value used in the pixel shader for simple lighting but i cant seem to find a way to do this. On stackoverflow they suggest modifying the geometry shader inbetween the two to pass the var...
- Sat Jul 06, 2024 6:54 am
- Forum: Support and Development
- Topic: function outputs two values, but i dont know how to use booth
- Replies: 3
- Views: 2558
Re: function outputs two values, but i dont know how to use booth
I'm on my phone so I can't test it, but could you clarify if the problem you're observing is that some triangles are missing from the result, or if all are there but some have flipped normals and are simply being backface-culled? In other words, if all clipped triangles are there in the data, but t...
- Thu Jul 04, 2024 8:31 pm
- Forum: Games and Creations
- Topic: 3D Test
- Replies: 4
- Views: 4909
Re: 3D Test
This reminds me a 3DSage´s GBA Minecraft game, just from the looks of it. Very cool project, i can imagine this would be awesome for puzzle game or maybe as a textured floor and ceiling for raycasters.
- Thu Jul 04, 2024 8:18 pm
- Forum: Support and Development
- Topic: how do i get files outside folder?
- Replies: 3
- Views: 1780
Re: how do i get files outside folder?
you have to put this line on the top of your main.lua, or whatever file should get acces to the player assets: require "yourFolderNameHere/filename.lua replace your folder namer with the folder you want to open up a file in or just the filename without folder and slash if your file is in the sa...
- Thu Jul 04, 2024 4:48 pm
- Forum: Support and Development
- Topic: function outputs two values, but i dont know how to use booth
- Replies: 3
- Views: 2558
function outputs two values, but i dont know how to use booth
Hello, im writing a clipping algorythm for my 3D renderer and in one scenario its supposed to see if a triangle is clipping, turn it into two which arent and then return those, but i can only ever see one of them, despite each working seperatly if i do this on line 58 of triangle.lua: return {3, tri...