• Create Account

### #ActualEngineProgrammer

Posted 28 August 2012 - 04:27 PM

I have already read the article Write Game, Not Engines. I do know engine programming isn't necessary for my future games I'll be writing. But if I enjoy doing it why discourage me?

I love all those low-level programming of Win32
But yes indeed, I need to write games, get the reusable code from it and make my engine that way.
I'll do that but to write my game I also need to write some 'engine' code.

Here is an example of what I have so far.
- Bump mapping
- Camera that can move around
- ( And many more: text, 2D bitmaps, textureshaders, multitextureshader, etc )

But now. I'm not working with Mesh Loader of DirectX yet. I found the algorithm to read in obj files into C++. But I have a little problem now. As you can see in the video I don't have smoothing groups yet.

Can someone help me out a bit for that? In the .obj file there is this kind of data:
s 4
f 1/1/1 2/2/2 3/3/3
f 3/3/3 4/4/4 1/1/1
f 5/5/5 6/6/6 3/3/3
f 3/3/3 2/2/2 5/5/5
f 7/7/7 8/8/8 6/6/6
f 6/6/6 5/5/5 7/7/7
f 9/9/9 10/10/10 8/8/8
f 8/8/8 7/7/7 9/9/9
f 11/11/11 12/12/12 13/13/13
f 13/13/13 14/14/14 11/11/11
s 1
f 15/15/15 16/16/16 17/17/17
f 17/17/17 18/18/18 15/15/15
f 15/15/15 19/19/19 20/20/20
f 20/20/20 16/16/16 15/15/15
f 19/19/19 21/21/21 22/22/22
f 22/22/22 20/20/20 19/19/19
f 21/21/21 23/23/23 24/24/24
f 24/24/24 22/22/22 21/21/21


s : smoothing group
f : faces

How do I enable the smoothing into my model? The normals I read in should normally create the smooth rendering but it doesn't. So I'm missing something but I dont' know what. Also what do I need to do with the value for the smoothing?

Should release in the reverse order of allocation to avoid deadlock (in general)

Yes I noticed. Already changed it 2 days ago. Thanks!

### #2EngineProgrammer

Posted 28 August 2012 - 12:16 PM

I have already read the article Write Game, Not Engines. I do know engine programming isn't necessary for my future games I'll be writing. But if I enjoy doing it why discourage me?

I love all those low-level programming of Win32
But yes indeed, I need to write games, get the reusable code from it and make my engine that way.
I'll do that but to write my game I also need to write some 'engine' code.

Here is an example of what I have so far.
- Bump mapping
- Camera that can move around
- ( And many more: text, 2D bitmaps, textureshaders, multitextureshader, etc )

But now. I'm not working with Mesh Loader of DirectX yet. I found the algorithm to read in obj files into C++. But I have a little problem now. As you can see in the video I don't have smoothing groups yet.

Can someone help me out a bit for that? In the .obj file there is this kind of data:
s 4
f 1/1/1 2/2/2 3/3/3
f 3/3/3 4/4/4 1/1/1
f 5/5/5 6/6/6 3/3/3
f 3/3/3 2/2/2 5/5/5
f 7/7/7 8/8/8 6/6/6
f 6/6/6 5/5/5 7/7/7
f 9/9/9 10/10/10 8/8/8
f 8/8/8 7/7/7 9/9/9
f 11/11/11 12/12/12 13/13/13
f 13/13/13 14/14/14 11/11/11
s 1
f 15/15/15 16/16/16 17/17/17
f 17/17/17 18/18/18 15/15/15
f 15/15/15 19/19/19 20/20/20
f 20/20/20 16/16/16 15/15/15
f 19/19/19 21/21/21 22/22/22
f 22/22/22 20/20/20 19/19/19
f 21/21/21 23/23/23 24/24/24
f 24/24/24 22/22/22 21/21/21


s : smoothing group
f : faces

I need to normalize some normals I've read in from that .obj file. But how am I supposed to do that? I can't find the connection of that number of the smoothing group and the face.

Should release in the reverse order of allocation to avoid deadlock (in general)

Yes I noticed. Already changed it 2 days ago. Thanks!

### #1EngineProgrammer

Posted 28 August 2012 - 12:15 PM

I have already read the article Write Game, Not Engines. I do know engine programming isn't necessary for my future games I'll be writing. But if I enjoy doing it why discourage me?

I love all those low-level programming of Win32
But yes indeed, I need to write games, get the reusable code from it and make my engine that way.
I'll do that but to write my game I also need to write some 'engine' code.

Here is an example of what I have so far.
- Bump mapping
- Camera that can move around
- ( And many more: text, 2D bitmaps, textureshaders, multitextureshader, etc )

But now. I'm not working with Mesh Loader of DirectX yet. I found the algorithm to read in obj files into C++. But I have a little problem now. As you can see in the video I don't have smoothing groups yet.

Can someone help me out a bit for that? In the .obj file there is this kind of data:
s 4
f 1/1/1 2/2/2 3/3/3
f 3/3/3 4/4/4 1/1/1
f 5/5/5 6/6/6 3/3/3
f 3/3/3 2/2/2 5/5/5
f 7/7/7 8/8/8 6/6/6
f 6/6/6 5/5/5 7/7/7
f 9/9/9 10/10/10 8/8/8
f 8/8/8 7/7/7 9/9/9
f 11/11/11 12/12/12 13/13/13
f 13/13/13 14/14/14 11/11/11
s 1
f 15/15/15 16/16/16 17/17/17
f 17/17/17 18/18/18 15/15/15
f 15/15/15 19/19/19 20/20/20
f 20/20/20 16/16/16 15/15/15
f 19/19/19 21/21/21 22/22/22
f 22/22/22 20/20/20 19/19/19
f 21/21/21 23/23/23 24/24/24
f 24/24/24 22/22/22 21/21/21


s : smoothing group
f : faces

I need to normalize some normals I've read in from that .obj file. But how am I supposed to do that? I can't find the connection of that number of the smoothing group and the face.

PARTNERS