Search found 712 matches

by MrGodin
July 16th, 2019, 3:39 am
Forum: Everything
Topic: Got side tracked...again
Replies: 5
Views: 173

Re: Got side tracked...again

Take a break dude. I do it all the time from coding and such. I took up archery for a while and it consumed me and my spare time. I'm fortunate to live out in the country on a large piece of land so i can do that but the end result is the same. I come back to code with a fresh mind and new ideas. ex...
by MrGodin
July 12th, 2019, 1:08 am
Forum: Everything
Topic: Arduino Micro Controllers
Replies: 5
Views: 66

Re: Arduino Micro Controllers

No, but I have looked into the Wifi shields. I plan to implement one of those two. I've only been at this a couple weeks. So I've made some progress.
Lets me know if you get the Ethernet connected, would be nice to pick your brain on that.
by MrGodin
July 10th, 2019, 10:57 pm
Forum: Everything
Topic: Arduino Micro Controllers
Replies: 5
Views: 66

Arduino Micro Controllers

Been on a bit of a change of pace with the Arduino Mirco Controller. Got a light sensor with a couple LEDs set up on a bread board. When the light reaches a certain threshold (darkness) it turns on the other LED. Am ordering some 5 volt relays and a thermo sensors to control my household fans when i...
by MrGodin
June 11th, 2019, 12:29 am
Forum: Everything
Topic: The problem is space
Replies: 5
Views: 279

Re: The problem is space

This looks like my AABB_2D class. I wrote a static library for math functions/classes. Math::vec2 is contained in this library. This may be why it isn't working?. I attached the files for the lib. The thor_math_d.lib is for debug builds and thor_math.lib is for release builds.
by MrGodin
June 10th, 2019, 12:46 pm
Forum: Everything
Topic: I guess I'll start
Replies: 36
Views: 1222

Re: I guess I'll start

OpenGL is the same 0,0 is bottom left. What I did was use the Orthographic Matrix (for projection) and switched the top and bottom variables and then i had to flip the UV coords for texture mapping. m_proj = Math::mat4::Orthographic(left, right, top, bottom, _near, _far); The Orthographic matrix wan...
by MrGodin
May 23rd, 2019, 8:07 pm
Forum: Everything
Topic: I guess I'll start
Replies: 36
Views: 1222

Re: I guess I'll start

Thats what I do, in my Application class i have a layerStack in which I push layers to. First layer is the map, second layer is entities. Also in 2D you can use a 3D positional vector where you set the z to be a render order variable.
by MrGodin
May 23rd, 2019, 1:14 am
Forum: Everything
Topic: Chili in the Matrix
Replies: 4
Views: 287

Re: Chili in the Matrix

Hey, thanks for the props. Glad you found some of my code useful to you. :)
by MrGodin
May 22nd, 2019, 12:21 am
Forum: Everything
Topic: I guess I'll start
Replies: 36
Views: 1222

Re: I guess I'll start

Yes I am doing OpenGL now (stated that when i posted images). I find it a lot simpler than Direct3D but obviously not as powerful. I'll take a look at what you're doing when i get a chance to. I am very interested if reviewing your code, always nice to find nuggets of information to make things simp...
by MrGodin
May 20th, 2019, 11:08 pm
Forum: Everything
Topic: I guess I'll start
Replies: 36
Views: 1222

Re: I guess I'll start

The way you want to render the images seems like a cool way to do it. I've never thought of it like that.
by MrGodin
May 20th, 2019, 11:06 pm
Forum: Everything
Topic: I guess I'll start
Replies: 36
Views: 1222

Re: I guess I'll start

I did my lighting like so. Frag shader #version 330 core layout (location = 0) out vec4 out_color; uniform vec3 in_lightPos; uniform float in_lightSize; in Data { vec4 position; vec4 normal; vec2 uv; float tex_id; vec4 color; } fs_in; uniform sampler2D texture_array[32]; void main() { float intensit...