+ Reply to Thread
Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 37

Thread: Digital Screen Scanner (Colour w/ hitNormal)

  1. #21
    Wire Sofaking N00bDud3's Avatar
    Join Date
    Jul 2009
    Location
    Error: Unknown Location
    Posts
    1,252

    Default Re: Digital Screen Scanner (Colour w/ hitNormal)

    That would be epic. I'm no good at this sort of thing. I wish I was.



  2. #22
    billywitchdoctor.com Schilcote's Avatar
    Join Date
    Jan 2009
    Location
    There.
    Posts
    2,006

    Default Re: Digital Screen Scanner (Colour w/ hitNormal)

    How fast is it? I've been looking for a super-speedy rangercam for the VSP...


    [19:16:47]Client "rcdraco" spawned in server
    [19:17:10]rcdraco: hamburgertime
    [19:18:04]rcdraco was killed by worldspawn
    [19:21:50]Dropped "rcdraco" from server

  3. #23
    Wire Sofaking Grocel's Avatar
    Join Date
    Mar 2008
    Location
    Germany, NRW, Remscheid
    Posts
    752

    Default Re: Digital Screen Scanner (Colour w/ hitNormal)

    Quote Originally Posted by Schilcote View Post
    How fast is it? I've been looking for a super-speedy rangercam for the VSP...
    You can't make digital scanner faster then about 62 pixel/tick (66.6 ticks/sec in gmod) (Thats about 4129 pixel/sec (about 4 times filling a 32x32 Screen(1024 pixels)) ).

    I had made a simple one, with WSR Support:

    Code:
    @name Hispeed Digital Screen Camera
    @inputs On Reset NoAuto Pixel XView YView Distance Screen:wirelink
    @outputs Process WSRmode
    @persist PixelAll Mem X Y Ranger AllowAuto WSRoffset Speed 
    @persist XView2 YView2 Distance2
    @trigger On
    
    if(!On & ~On | changed(Pixel) | changed(Screen) | first())
    {
        WSRoffset = 15
        Mem = -1
        Speed = 1 # Set the Speed, 1 = Half of max speed. More then 2 can cause heavy lags!
        Process = 0
        
        Pixel = clamp(Pixel,1,512)
        PixelAll = Pixel^2
        
        WSRmode = Screen:entity():type() == "gmod_wire_socketradio"
        
        if (Pixel <= 128)
        {
            AllowAuto = 1
        }
        else
        {
            AllowAuto = 0
        }
    
        if(WSRmode)
        {
            Screen[WSRoffset + 1048574] = 1
            Screen[WSRoffset + 1048572] = Pixel
            Screen[WSRoffset + 1048573] = Pixel
            Screen[WSRoffset + 1048569] = 0
        }
        else
        {
            Screen[1048574] = 1
            Screen[1048572] = Pixel
            Screen[1048573] = Pixel
            Screen[1048569] = 0
        }
    }
    
    if(Reset & ~Reset)
    {
        reset()
    }
    
    if (On & (Mem <= PixelAll | (AllowAuto & !NoAuto)))
    {   
        runOnTick(1)
    
        Loops = 0
    
        if(AllowAuto & !NoAuto & Mem > PixelAll)
        {
            Mem = -1
        }
    
        while(Loops < 31*Speed & minquota() > 5000)
        {
            Loops++
            Mem++
            
            XView2 = clamp(XView,0.01,360)
            YView2 = clamp(YView,0.01,360)
            Distance2 = clamp(Distance,32,(2^15))
            
            X = (Mem % Pixel) * XView2 / Pixel - (XView2 / 2)
            Y = floor(Mem / Pixel) * YView2 / Pixel - (YView2 / 2)
    
            Ranger = rangerAngle(Distance2,X,Y):distance() / Distance2 * 255
        
            if(WSRmode)
            {
                Screen[WSRoffset + Mem] = Ranger
            }
            else
            {
                Screen[Mem] = Ranger
            }
        }
        Process = clamp((Mem / PixelAll) * 100,0,100)
    }
    Last edited by Grocel; 01-30-2010 at 07:22 PM.
    Quote Originally Posted by Wizard of Ass View Post
    The secret phrase in gmod is: Rusty bullet hole
    Im a molecule!

  4. #24
    billywitchdoctor.com Schilcote's Avatar
    Join Date
    Jan 2009
    Location
    There.
    Posts
    2,006

    Default Re: Digital Screen Scanner (Colour w/ hitNormal)

    Quote Originally Posted by Grocel View Post
    You can't make digital scanner faster then about 62 pixel/tick (66.6 ticks/sec in gmod) (Thats about 4129 pixel/sec (about 4 times filling a 32x32 Screen(1024 pixels)) ).

    I had made a simple one, with WSR Support:
    You mean 4 FPS? Sounds good. I bet you could get more by using multiple E2s (or maybe gates...)

    That chip is teh awesomeness. It's exactly what I need. It gets the aforementioned 4 FPS right? At what resolution?


    [19:16:47]Client "rcdraco" spawned in server
    [19:17:10]rcdraco: hamburgertime
    [19:18:04]rcdraco was killed by worldspawn
    [19:21:50]Dropped "rcdraco" from server

  5. #25
    Wire Sofaking Grocel's Avatar
    Join Date
    Mar 2008
    Location
    Germany, NRW, Remscheid
    Posts
    752

    Default Re: Digital Screen Scanner (Colour w/ hitNormal)

    Quote Originally Posted by Schilcote View Post
    You mean 4 FPS? Sounds good. I bet you could get more by using multiple E2s (or maybe gates...)

    That chip is teh awesomeness. It's exactly what I need. It gets the aforementioned 4 FPS right? At what resolution?
    Yes 4 FPS at 32x32, at 16x16 it is 16 FPS. The chip can run about 10 times faster without lagging, but the screen is not fast enough, the screen uses the user-message-system that only can work till a certain amount of data per tick, when your chip makes more data then the screen not come after this, this will cause extreme lags. If you use it with the WSR the max FPS is half then you can use on a screen, because the WSR have to send it over the Internet to a another server/single-player-game.

    The chip has a build-in ranger, because it's faster and more exactly the the normal ranger or even the hi-speed-ranger.
    You can set resolution, FOV and max distance via wire inputs, the Process output says you how may percent of the scene is scanned (Useful for high resolution like 256x256 or 512x512).
    Quote Originally Posted by Wizard of Ass View Post
    The secret phrase in gmod is: Rusty bullet hole
    Im a molecule!

  6. #26
    Wire Sofaking smellslike's Avatar
    Join Date
    May 2009
    Location
    in a lonley world
    Posts
    412

    Default Re: Digital Screen Scanner (Colour w/ hitNormal)

    Damn, I always wondered why there weren't more scanner video cameras(that sort of deal) Could be useful for a number of things, instead of a simple rt camera you could have something that maps out terrain so you could fly or drive purely on instruments. Etc....
    Working on military pack.
    Remember
    amateurs build the ark....
    Professionals build the titanic

  7. #27
    Wire Sofaking N00bDud3's Avatar
    Join Date
    Jul 2009
    Location
    Error: Unknown Location
    Posts
    1,252

    Default Re: Digital Screen Scanner (Colour w/ hitNormal)

    I wish I knew an algorithm for implementing light into one of these scanners like Lutin did. I hope that you manage to succeed in adding light generation into your's, Dingo2.



  8. #28
    Wirererer Tayg0's Avatar
    Join Date
    Aug 2008
    Posts
    144

    Default Re: Digital Screen Scanner (Colour w/ hitNormal)

    Quote Originally Posted by N00bDud3 View Post
    I wish I knew an algorithm for implementing light into one of these scanners like Lutin did. I hope that you manage to succeed in adding light generation into your's, Dingo2.
    It's actually incredibly easy.

  9. #29
    Wire Sofaking N00bDud3's Avatar
    Join Date
    Jul 2009
    Location
    Error: Unknown Location
    Posts
    1,252

    Default Re: Digital Screen Scanner (Colour w/ hitNormal)

    I'm gonna try when I get a chance to, but I have yet to even make a successful scanner.



  10. #30
    billywitchdoctor.com Schilcote's Avatar
    Join Date
    Jan 2009
    Location
    There.
    Posts
    2,006

    Default Re: Digital Screen Scanner (Colour w/ hitNormal)

    Grocel, I can't get your scanner to work. No matter what I do, I just get a black screen.

    I'll try the OP's scanner...


    [19:16:47]Client "rcdraco" spawned in server
    [19:17:10]rcdraco: hamburgertime
    [19:18:04]rcdraco was killed by worldspawn
    [19:21:50]Dropped "rcdraco" from server

+ Reply to Thread
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Expression 2 High Speed Digital Scanner :D
    By McLovin in forum Expression 2 Discussion & Help
    Replies: 19
    Last Post: 10-10-2009, 03:05 PM
  2. [E2] Map In Digital Screen
    By HellBoyUK in forum Expression 2 Discussion & Help
    Replies: 1
    Last Post: 08-10-2009, 12:07 AM
  3. Digital Screen
    By SpectreCat in forum Installation and Malfunctions Support
    Replies: 2
    Last Post: 08-04-2009, 06:34 PM
  4. Display RT Camera Screen on a Digital Screen?
    By LeonBlade in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 5
    Last Post: 06-03-2009, 01:17 AM
  5. Colour digital screen
    By Tolyzor in forum Ideas & Suggestions
    Replies: 40
    Last Post: 03-25-2009, 10:24 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots