ExJam Item Viewer and 3D engine

Project to create a new client based on new file formats and eventually a new 3D engine.

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

ExJam Item Viewer and 3D engine

Postby lmame on Sun Aug 08, 2010 4:13 am

So Juan gave a link to ExJam Item viewer and 3D engine, he made quite some work since the last time I looked at it :)

If you want to give it a try, here are a few things you need to do:
1°) download the code from his svn (see his google code website for this http://code.google.com/p/r3e/),
2°) download this .zip and unzip it into the "/libraries/include/" folder from his project so you have "/libraries/include/glnew/",
glnew.zip
(125.67 KiB) Downloaded 1000 times


3°) change some stuff in his code:
a°) in project Item Viewer:
Change this path to the path of your extracted client:
  1. FileSystem::SetFileSystem((FileSystem*)(new BufferedFileSystem("D:\\Games\\RuffVFS Clean\\")));



REPLACE:


BY:



b°) in R3E project:
In file "OpenGl.hpp":
REPLACE:
  1.  
  2. #include <gl/gl.h>
  3. #include <gl/glext.h>
  4.  


BY:
  1.  
  2. #include <glnew/gl3.h>
  3. #include <glnew/glext.h>
  4.  



In file "OpenGl.hpp":
REPLACE:


BY:



4°) change the include and lib folder in the projects:
Click on one project (R3E or Item Viewer) first.
You must do it in debug and release configurations.

include:
You need to change the "include" for both projects.
The path to change is in "project->properties->configuration properties->c/c++->general-> additional include directories"
change "D:\Programming\Projects\R3E\Libraries\include"
to your "xxxxxxx\libraries\include" folder.

lib:
You need to change the "lib" only for R3E.
The path to change is in "project->properties->configuration properties->librarian-> additional library directories"
change "D:\Programming\Projects\R3E\Libraries\lib"
to your "xxxxxxx\libraries\lib" folder.



5°) rebuild the solution.
It seems sometimes it fails finding "R3E.lib". If that's the case, right click on "R3E" and hit "Rebuild", then when it's done, right click on "Item Viewer" and hit rebuild, should do the trick.


6°) after you build his code, don't forget to copy the two files in "/shaders/" folder to the folder the item "viewer.exe" is (or "/debug/" or "/release/").
WARNING
By the way there is a small bug in one of the shaders, named "1tex_skin_mesh.vsh", easy to fix. It causes some visual troubles like body moving like crazy and textures beeing weird or body not appearing at all.
Use those files rather (unrar it into the folder where "item viewer.exe" is):
shaders.rar
(540 Bytes) Downloaded 1009 times
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: ExJam Item Viewer and 3D engine

Postby lmame on Sun Aug 08, 2010 4:16 am

All items, sex, animations are to be defined in "main.cpp" from "Item Viewer" project.
Attachments
Item Viewer 2010-08-08 05-15-01-80.jpg
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: ExJam Item Viewer and 3D engine

Postby lmame on Sun Aug 08, 2010 4:34 am

There is surely another way to build it though this is the lazy way I used, that's all ;)
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: ExJam Item Viewer and 3D engine

Postby Aukemon0NL on Sun Aug 08, 2010 1:28 pm

For some reason it looks very blocky?
But on that note thanks looks good ;)
I will look at the changes you made and implant them to mine :P
Image
User avatar
Aukemon0NL
Pomic
Pomic
 
Posts: 107
Joined: Fri May 16, 2008 8:53 pm
Location: The Netherlands

Re: ExJam Item Viewer and 3D engine

Postby PurpleYouko on Mon Aug 09, 2010 2:59 pm

I think the blockiness comes from the low polygon count in rose models. You won't really get away from that unless you upgrade the models significantly.
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: ExJam Item Viewer and 3D engine

Postby Aukemon0NL on Mon Aug 09, 2010 3:02 pm

But than my question is why does it look much better in the client?
The same thing comes up for me at RuneScape.
They support both openGL and DirectX.
But when I choose openGL everything becomes a little blockier than when I choose DirectX.
So I think it has to do with openGL?
Image
User avatar
Aukemon0NL
Pomic
Pomic
 
Posts: 107
Joined: Fri May 16, 2008 8:53 pm
Location: The Netherlands

Re: ExJam Item Viewer and 3D engine

Postby PurpleYouko on Mon Aug 09, 2010 8:31 pm

maybe. i haven't really played with openGL
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: ExJam Item Viewer and 3D engine

Postby larsgevers on Sun Aug 15, 2010 7:58 pm

I did exactly what you've told in your guide. But when i try to start the Item viewer.exe i get this error:
  1. Debug Error!
  2.  
  3. Program: ItemViewer.exe
  4.  
  5. Invalid allocation size: 4294967295 bytes.
  6.  
  7. (Press Retry to debug the application).
  8.  


How can i fix this?
User avatar
larsgevers
Rackie
Rackie
 
Posts: 278
Joined: Fri Mar 20, 2009 2:10 pm

Re: ExJam Item Viewer and 3D engine

Postby lmame on Sun Aug 15, 2010 8:00 pm

It means you did something wrong. Hard to tell from this error.
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: ExJam Item Viewer and 3D engine

Postby larsgevers on Sun Aug 15, 2010 8:25 pm

When i build the project it gives me this error:
  1.  
  2. 1>R3Ed.lib(il_convbuff.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with '..\Debug\R3Ed.lib' or at 'C:\Users\Lars Gevers\Desktop\New folder\Debug\vc90.pdb'; linking object as if no debug info
  3.  


And a lot more of these warnings. Guess this has to be why the program doesn't work right?
User avatar
larsgevers
Rackie
Rackie
 
Posts: 278
Joined: Fri Mar 20, 2009 2:10 pm

Next

Return to [Project] Custom client (new 3d engine, new files formats)

Who is online

Users browsing this forum: No registered users and 4 guests