Advertising
How to use 3D of the GPU?
Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Forum rule Nº 15 is strictly enforced in this subforum.
How to use 3D of the GPU?
I am fluent in c++ and have made a simple pong demo but I've already done many 2D games with PC and DS. Can anyone tell me anything about registers/address locations for using the GPU's 3D functions?
Stuff I've done:
libvita3d
libvita3d
Re: How to use 3D of the GPU?
for 2d you must master vita2dlib, and i guess you must compile it yourself
here are some notes to achieve that if you use msys2 under win10 :
viewtopic.php?f=116&t=46182
for 3d I will investigate, check for any restult there weekly/monthly :
viewtopic.php?f=54&t=46495
here are some notes to achieve that if you use msys2 under win10 :
viewtopic.php?f=116&t=46182
for 3d I will investigate, check for any restult there weekly/monthly :
viewtopic.php?f=54&t=46495
Advertising
-
- Posts: 11
- Joined: Mon Jun 29, 2015 7:35 pm
Re: How to use 3D of the GPU?
Just look at the vita2dlib for context initialisation. Then use your own shaders an setup matrix for 3d rendering. You can use this for compiling shaders https://github.com/xyzz/vita-shaders (you will need an arm version of gcc and an arm emulator).
Re: How to use 3D of the GPU?
THANK YOU!!!! So can I just call vita2d_init() and setup shaders and matrices, or should I do the context initialization myself?MrSilverstone wrote:Just look at the vita2dlib for context initialisation. Then use your own shaders an setup matrix for 3d rendering. You can use this for compiling shaders https://github.com/xyzz/vita-shaders (you will need an arm version of gcc and an arm emulator).
Stuff I've done:
libvita3d
libvita3d
-
- Posts: 11
- Joined: Mon Jun 29, 2015 7:35 pm
Re: How to use 3D of the GPU?
I looked at the libvita2d sources and the initialisation of the lib also initialises some shaders needed by the lib. It should not be a problem, but I think that initializing the context by yourself would be a cleaner method.
I tried to create a small 3d renderer : https://github.com/MrSilverstone/vita3d
I tried to create a small 3d renderer : https://github.com/MrSilverstone/vita3d
Re: How to use 3D of the GPU?
Cool! My approach is modifying libvita2d to support 3d (it already uses 3d hardware with an ortho projection).MrSilverstone wrote:I looked at the libvita2d sources and the initialisation of the lib also initialises some shaders needed by the lib. It should not be a problem, but I think that initializing the context by yourself would be a cleaner method.
I tried to create a small 3d renderer : https://github.com/MrSilverstone/vita3d
It seems vita2d already has a perspective matrix init function, but I can't get it to work.
Stuff I've done:
libvita3d
libvita3d
-
- Posts: 11
- Joined: Mon Jun 29, 2015 7:35 pm
Re: How to use 3D of the GPU?
How did you setup your view matrix?
Re: How to use 3D of the GPU?
That's part of my problem. I couldn't get the lib to work, and I'm still trying to understand 3D rendering as a whole. Aside from that, I'll give GLM a try and use the matrices from that.MrSilverstone wrote:How did you setup your view matrix?
EDIT: glm::lookAt() seems to work.
Stuff I've done:
libvita3d
libvita3d