Search found 3591 matches

by Jasoco
Mon Mar 07, 2022 1:58 pm
Forum: Libraries and Tools
Topic: Groverburger's 3D Engine (g3d) v1.5.2 Release
Replies: 218
Views: 460317

Re: Groverburger's 3D Engine (g3d) v1.5.1 Release

I'll just forget about that whole thing. If I want a flat shade I'll just make my models with single color textures. lol
by Jasoco
Fri Jan 28, 2022 4:04 pm
Forum: Libraries and Tools
Topic: Groverburger's 3D Engine (g3d) v1.5.2 Release
Replies: 218
Views: 460317

Re: Groverburger's 3D Engine (g3d) v1.5.1 Release

You can easily switch to z up by importing your model into blender, and then when exporting an option for z-up will appear (you can also triangulate faces as an option if they're not yet). I've done this before I was just wondering if it could just be put into the library as an option. I could prob...
by Jasoco
Thu Jan 27, 2022 6:41 pm
Forum: Libraries and Tools
Topic: Groverburger's 3D Engine (g3d) v1.5.2 Release
Replies: 218
Views: 460317

Re: Groverburger's 3D Engine (g3d) v1.5.1 Release

Is it possible to have the triangles be a single color or utilize .mtl files instead of a texture? Would that be possible to implement or should I just stick to using single color textures if I need to have flat shaded polygons? Also is it possible to easily convert Y-up oriented .obj data to Z-up o...
by Jasoco
Tue Jan 25, 2022 3:51 pm
Forum: General
Topic: How do you organize your projects?
Replies: 8
Views: 5477

Re: How do you organize your projects?

I have a folder with all my projects. A folder with older projects I abandoned so I can still get their code if I need to. And a folder with demos and samples downloaded from the forum and other snippets of code. Those last two folders are a mess but Spotlight still lets me search. My main project f...
by Jasoco
Tue Jan 25, 2022 3:49 pm
Forum: General
Topic: How to go about daily random numbers
Replies: 27
Views: 11160

Re: How to go about daily random numbers

Nice, that makes sense I suppose since there's just a need for a seed. It's really all you need, and since normally a seed for games like those is just chosen from the current second, it makes sense to also choose the daily seed from the current second at the stroke of midnight for that day. (GMT o...
by Jasoco
Tue Jan 25, 2022 2:51 pm
Forum: Support and Development
Topic: Determine whether a point is behind a line?
Replies: 7
Views: 2827

Re: Determine whether a point is behind a line?

I got something that works after a lot of work. It's not the exact effect I wanted, but it does the job for now. Not the fault of the algorithm though. Just something I have to figure out.

Thanks for all the help so far.
by Jasoco
Tue Jan 25, 2022 1:19 pm
Forum: Support and Development
Topic: Determine whether a point is behind a line?
Replies: 7
Views: 2827

Re: Determine whether a point is behind a line?

Something like LOS? https://en.wikipedia.org/wiki/Line_of_sight_(video_games) Yes actually. Basically I'm working with g3d and I have a third person camera but I also have large trees and buildings that get in between the camera and player so I'm hoping to figure out a way to check the "area&q...
by Jasoco
Mon Jan 24, 2022 6:25 pm
Forum: Support and Development
Topic: Determine whether a point is behind a line?
Replies: 7
Views: 2827

Determine whether a point is behind a line?

Say I have a plane, like the green line below, how would I determine that the red circle is in front of the line and the blue one is behind it mathematically? help.png Hard to explain in words. But I think you can understand what I'm saying. I feel like it should be simple. A usage of maybe sin or c...
by Jasoco
Thu Jan 20, 2022 5:32 pm
Forum: General
Topic: How to go about daily random numbers
Replies: 27
Views: 11160

Re: How to go about daily random numbers

This all looks so complicated, whats wrong with just rng=math.floor(os.time()/(24*60*60)) ? This is actually how I always thought these games with "daily challenges" worked anyway. It would be simple, would be standard across all platforms as long as the RNG is also uniform, and wouldn't ...
by Jasoco
Wed Jan 19, 2022 5:32 pm
Forum: Libraries and Tools
Topic: Groverburger's 3D Engine (g3d) v1.5.2 Release
Replies: 218
Views: 460317

Re: Groverburger's 3D Engine (g3d) v1.5.1 Release

I haven't done any serious testing but I'm pretty sure it has no discernible performance impact. It's probably fine to slip it into the model:draw function if you want to implement some sort of model:setCullMode() function. Doesn't seem to have any performance hit. I can't see why it would. That's ...