Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 10 11 12 13 14 … 18 Next »
3D Cam, Positioning Problem
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
3D Cam, Positioning Problem
29-10-2015, 01:19 AM,
#5
TheOneAndOnlyTee Offline
GMod Admin
Posts: 755
Threads: 47
Joined: Oct 2013
RE: 3D Cam, Positioning Problem
Tested this code

local Centre = Vector( 0, 0, 0 )
hook( "render", "DrawStuff", function()

render.clearDepth()
local Player = ents.player()
render.start3D( Player:eyePos(), Player:aimVector():Angle(), 75, 0, 0, 1680, 1050, 1, 2048 )
--Start by suppressing the engine lighting.
render.suppressEngineLighting( true )

--Set the light to come from the centre of the world.
render.setLightingOrigin( Centre )
--Set the light to be white (values are 0-1)
render.resetModelLighting( 1, 1, 1 )

--Set the model's colour to white, and alpha to 0.5 (again, values are 0-1)
render.setColorModulation( 1, 1, 1 )
render.setBlend( 1 )

--Add directional lights.
for i = 0, 6 do
render.setModelLighting( i, 1, 1, 1 )
end
--Draw the model.
render.drawWireframeSphere(ents.self():toWorld(Vector(0,0,55)),20,24,24,Color(255,0,0))
--Stop suppressing engine lighting.
render.suppressEngineLighting( false )
render.end3D()
end )

but the result was this

Steam Profile
My Discord Server
Need help with E2 or SF? , just ask me and i'll try to help.
[Image: 98Dkcoz.gif]
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
3D Cam, Positioning Problem - by TheOneAndOnlyTee - 28-10-2015, 02:03 PM
RE: 3D Cam, Positioning Problem - by Person8880 - 28-10-2015, 05:45 PM
RE: 3D Cam, Positioning Problem - by Destiny's Player - 28-10-2015, 06:44 PM
RE: 3D Cam, Positioning Problem - by TheOneAndOnlyTee - 28-10-2015, 11:49 PM
RE: 3D Cam, Positioning Problem - by Destiny's Player - 29-10-2015, 11:27 AM
RE: 3D Cam, Positioning Problem - by TheOneAndOnlyTee - 29-10-2015, 01:19 AM
RE: 3D Cam, Positioning Problem - by TheOneAndOnlyTee - 29-10-2015, 11:38 AM
RE: 3D Cam, Positioning Problem - by Destiny's Player - 29-10-2015, 11:42 AM
RE: 3D Cam, Positioning Problem - by Person8880 - 29-10-2015, 06:24 PM
RE: 3D Cam, Positioning Problem - by TheOneAndOnlyTee - 29-10-2015, 06:30 PM
RE: 3D Cam, Positioning Problem - by Person8880 - 29-10-2015, 07:46 PM
RE: 3D Cam, Positioning Problem - by TheOneAndOnlyTee - 30-10-2015, 01:21 AM
RE: 3D Cam, Positioning Problem - by Person8880 - 30-10-2015, 06:31 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.