mirror of
https://github.com/libretro/scenewalker-libretro.git
synced 2024-11-23 07:49:43 +00:00
Change so-name.
This commit is contained in:
parent
8362e2befc
commit
4c6beb9771
2
Makefile
2
Makefile
@ -12,7 +12,7 @@ else ifneq ($(findstring win,$(shell uname -a)),)
|
||||
endif
|
||||
endif
|
||||
|
||||
TARGET_NAME := modelviewer
|
||||
TARGET_NAME := fpswalk
|
||||
|
||||
ifeq ($(platform), unix)
|
||||
TARGET := $(TARGET_NAME)_libretro.so
|
||||
|
39
README.md
39
README.md
@ -1,40 +1,11 @@
|
||||
## ModelViewer libretro
|
||||
## FPS-walk libretro
|
||||
|
||||
This is a simple modelviewer for libretro using the OpenGL interface.
|
||||
It displays basic objects in .obj format. Objects are loaded as ROMs in RetroArch.
|
||||
Walks around in an FPS environment. Has basic gravity and collision detection implemented
|
||||
from scratch.
|
||||
|
||||
retroarch -L libretro-modelviewer.so cool_thing.obj
|
||||
retroarch -L fpswalk_libretro.so cool_room.obj
|
||||
|
||||
## Controls
|
||||
|
||||
Models are rotated using left RetroPad analog axis. The object is scaled with right analog.
|
||||
|
||||
## Textures/materials
|
||||
|
||||
This implementation does not support MTL materials. Instead, a simple `texture` extension is used.
|
||||
|
||||
texture Foo
|
||||
|
||||
sets the current texture to `Foo.png` relative to where the obj was loaded from.
|
||||
All faces declared after will refer to this texture.
|
||||
|
||||
## Changing resolution
|
||||
|
||||
The implementation exposes a libretro core option to change internal resolution.
|
||||
Resolutions can be set to a scale factor of 320x240 (up to 1920x1440).
|
||||
|
||||
## Example OBJ
|
||||
|
||||
This declares a simple textured triangle:
|
||||
|
||||
texture blockDiamond
|
||||
v -1.0 -1.0 0.0
|
||||
v 1.0 -1.0 0.0
|
||||
v 0.0 1.0 0.0
|
||||
vn 0.0 0.0 -1.0
|
||||
vt 0.0 0.0
|
||||
vt 1.0 0.0
|
||||
vt 0.5 1.0
|
||||
|
||||
f 1/1/1 2/2/1 3/3/1
|
||||
Walk around with left RetroArch analog. Look around with right RetroArch analog.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user