[img]http://puu.sh/2CvzZ[/img]
Hello, how is it possible to make something like this?
But not on a quad, i want to render the world on the entity itself.
Also there is that weird bug of weapons dissapearing when looking through.
You should look into using cam.Start3D2D
[url]http://gmodwiki.net/Lua/Libraries/cam/Start3D2D[/url]
You use that function then draw stuff like you would on your screen with the draw or the surface libraries
then you use cam.Stop3D2D
Do this in the PreDrawOpaqueRenderables hook
Wouldn't this use a render target and need to be re-rendered every time a new entity with it is made, though? (Which can take about 30 seconds)
What.... ?
How rendering works:
- It draw models from memory. This won't lag unless you draw 9001 of them.
"But I had some lag when spawning a tf2-model.."
- Let me stop you right there. Its not the rendering but loading of the model that took a few seconds. This will load the model into the memory so the game can draw it.
"So how can I draw it?"
- Like Ducky said: With [url=http://gmodwiki.net/Lua/Libraries/cam/Start3D2D]cam.Start3D2D[/url]. This won't create an entity but works like a surface where you can draw stuff on.
"How dos it work?"
- Facepunch is not intended to work like a wiki page. You should use google first and get help after.
@Nak,
I know how rendering works, i know everything about it what so ever
and i DID google all this crap and i've found nothing.
All wikis i've visited by now have half of their crap undocumented that's why i'm here.
Gonna try Ducky's method now, i hope it works!
[editline]21st April 2013[/editline]
Finally! I managed to do something using
render.RenderView()
Sorry, you need to Log In to post a reply to this thread.