# Request a Tutorial

• (5 Pages)
• « First
• 3
• 4
• 5

## 62 Replies - 91049 Views - Last Post: 20 April 2016 - 09:00 AMRate Topic: 1 Votes //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'https://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=120237&amp;s=5830456e572ddc82f940eb211af3fbcb&md5check=' + ipb.vars['secure_hash'], cur_rating: 4, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #61 jbeme

Reputation: 3
• Posts: 98
• Joined: 30-October 09

## Re: Request a Tutorial

Posted 22 December 2014 - 08:16 AM

I was just updating myself on OpenGL and two tutorials would have been nice. I'd make them myself, but I doubt anyone wants me to do it. Still a few concepts I don't fully understand.
I should also note, I only use glew, windows, string, and stdio. Not a big fan of add-in's like glut or even glmath.

1)Breakdown of gl_position matrix by slot and meaning
Language: C (one of the C's anyways, wouldn't matter much for a matrix)
Subject: Take a 4x4 matrix, look at it as a array of floats. The tutorial would explain what each spot in the array would be and how to mathematically derive that from something like gluLookAt(since this is now deprecated).
Something similar to what is shown https://www.youtube....id=P8Xs_WR4zIw. Take x,y,z and convert to gl_perspective.
Purpose: It took me about 40 hours to figure this out myself, since most people like to just teach a matrix and give you magic equations (I always want to understand why, not just use magic) or they have massive use of addition libraries or some other plug-in type thing. It's odd to me that tutorials on the most basic of things don't exist and I don't want anyone else to suffer like I did. People prefer magic.
Something like
```GLfloat* some_array = {1.0f, 0.0f, 0.0f, 0.0f,
0.0f, 1.0f, 0.0f, 0.0f,
0.0f, 0.0f, 1.0f, 0.0,
0.0, 0.0, 0.0, 10.0f}
glUniform4fv(loc, some_array);

```

```model = glm::translate(model, cubePositions[i]);
GLfloat angle = 20.0f * i;
model = glm::rotate(model, angle, glm::vec3(1.0f, 0.3f, 0.5f));

```

``` #version 410 core
layout (location = 0) in vec3 position
uniform float* some_array;
main() {
gl_position = some_array*position;
}

```

I hope the above code is close enough to give the idea. Even if not technically right...
Currently for my most basic shader I have.
```gl_position = offset * vec4(position.x + move_x, position.y + move_y, position.z + move_z, 1.0f);

```

It works for 360 degrees on all axis, but I'd love to clean it up and have a slightly better understanding.
A similar breakdown for below shader would also be a nice bonus. Using an array of floats and setting each one separately.
```gl_position = projection * view * model * position;

```

I am using this for some things, but I honestly don't understand everything going on to the level I want. I can set up a projection and understand short cuts to do that, but I don't know how to set up the matrix bit by bit and I can't find a good tutorial that explains it all without using something to cheat. I'm relatively sure it possible, due to the code I hobbled together via trial and error.

2) "Base OpenGL"
Language: C or Cish
Subject: A tutorial looking at Opengl without using Glut, GLFW, etc.
Purpose: I think everyone should understand how things work before they start adding in things like Model View and Projection View and before they start using the GLmath library.
Comments: If you wanted to do collision first, that'd be neat. It's the only thing I have left to relearn:)

This post has been edited by jbeme: 22 December 2014 - 08:40 AM

### #62 Exouxas

Reputation: 0
• Posts: 1
• Joined: 16-June 15

## Re: Request a Tutorial

Posted 16 June 2015 - 04:57 AM

IUPLUA & LUAGL
Language: LUA
Subject: Creating a simple canvas and drawing to it. Possibly creating more than one and drawing to all.
Purpose: Learning the functions of LUAGL and IUPLUA. I tried looking for comprehensive tutorials, but I couldn't find any. If you know of any tutorials that fits this description, please share with me.
Comments: I'm fairly new to LUA but I've been programming and scripting for a fair amount of time.

### #63 clarky

Reputation: 0
• Posts: 1
• Joined: 20-April 16

## Re: Request a Tutorial

Posted 20 April 2016 - 09:00 AM

1Tutorial Title
2d rpg setting like pokemon

2Language:
c++

3Subject:
would love video tutorial

4Purpose:
mainly for learning experience so people can take the basics from it and build on it

i know how to move a guy around a map iv loaded and make the avatar do collisions so he cant run over water ect,
(duno if the way i did it is the best way or not)

what im aiming for is a video tutrial thats shows a sprite walking about a map like pokemon changing screens to a new map,
getting into a fight like pokemon but the fighting like ff7, that what im looking for the now i know how to do inventory but only in text based games not trying putting it to 2d yet, (if a person does this and adds it in then yes i would be gratful)

following note if payment is needed for this be happy to if reasonable but will be sharing it myself after it anyway so will still pass out credit to you