+ Reply to Thread
Page 27 of 27 FirstFirst ... 17252627
Results 261 to 270 of 270

Thread: Wire GPU Tutorial: by Drunkie

  1. #261
    Ursus maritimus Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    5,662
    Blog Entries
    1

    Default Re: Wire GPU Tutorial: by Drunkie

    Quote Originally Posted by ben1066 View Post
    More documentation on how to use the cursor?
    I don't see what else needs to be documented, there's only 3 things to explain about the cursor and I showed them in my example.

    Code:
    mov #regCursor,1; // Enable the cursor
    mov #pos.x,#regCursorX; // Get the X value of the cursor
    mov #pos.y,#regCursorY; // Get the Y value of the cursor
    Thats all there is to it.

  2. #262
    Wirererer ben1066's Avatar
    Join Date
    Aug 2009
    Posts
    151

    Default Re: Wire GPU Tutorial: by Drunkie

    I mean how to use the use pipeline in co-ordination with the cursor.

  3. #263
    Lifetime Supporter Nikita's Avatar
    Join Date
    May 2009
    Posts
    769

    Default Re: Wire GPU Tutorial: by Drunkie

    1) Is there a way to set FOV angle?
    2) Is there a way to set the distance of the Near plane (if there is one)?

  4. #264
    Ursus maritimus Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    5,662
    Blog Entries
    1

    Default Re: Wire GPU Tutorial: by Drunkie

    Quote Originally Posted by Nikita View Post
    1) Is there a way to set FOV angle?
    2) Is there a way to set the distance of the Near plane (if there is one)?
    Is this for 3D projections? I'll link BP to your post so he can give a better answer.

  5. #265
    That furred thing Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    3,565

    Default Re: Wire GPU Tutorial: by Drunkie

    Quote Originally Posted by Nikita View Post
    1) Is there a way to set FOV angle?
    2) Is there a way to set the distance of the Near plane (if there is one)?
    You specify a vector for the "mperspective", which includes both of these variables (but near plane setting should not really affect rendering):
    Code:
    vector4f vPerspective,30,1,1,30; //<FOV> <ASPECT RATIO> <ZNEAR> <ZFAR>
    I'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5

  6. #266
    Lifetime Supporter Nikita's Avatar
    Join Date
    May 2009
    Posts
    769

    Default Re: Wire GPU Tutorial: by Drunkie

    Aha...

    So umm, should I code the polygon clipping (Sutherland-Hodgeman) for GPU? When it's turned on it automatically cuts each triangle exactly where it gets out of FOV (or intersects ZNEAR or ZFAR planes), therefore vertices outside do not get rendered and it doesn't look ugly or strange when parts of a triangle are outside (as seen in [GPU]Minecraft and Matte's gmod in gmod). It also means culling doesn't have to hide these weird faces.
    It's not much of an add compared to all other math you have there.
    Last edited by Nikita; 11-24-2010 at 01:10 PM.

  7. #267
    Ursus maritimus Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    5,662
    Blog Entries
    1

    Default Re: Wire GPU Tutorial: by Drunkie

    I suppose this is worthy of a bump.

    I updated and removed deprecated information from the older GPU. Anything you read here now should be valid with the newer GPU.

  8. #268
    Wire Noob Glok's Avatar
    Join Date
    Jun 2011
    Location
    The interwebz
    Posts
    6

    Default Re: Wire GPU Tutorial: by Drunkie

    Hey, uh, I got my finals done, so, I'm going to work on my project. But I have a problem: how do I make the GPU get an RGB color from the E2? I'm guessing the code is something like:
    Code:
    @inputs GPU:wirelink
    
    GPU[63488] = 255
    GPU[63489] = 0
    GPU[63490] = 150
    GPU:
    Code:
    dcolor color0;
    dsetsize 24;
    dwrite pos,testtxt;
    
    dexit;
    
    vec2f pos,25,25;
    color color0,#63488,#63489,#63490;
    string testtxt,"Test.";
    If it's simple, I'm sorry, I'm babysitting this autistic kid and he's having a tizzy fit . So I'm having a hard time figuring this out.
    12-year-old Asian kid is smarter than the average 16-year-old Whitey.

  9. #269
    Ursus maritimus Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    5,662
    Blog Entries
    1

    Default Re: Wire GPU Tutorial: by Drunkie

    Code:
    mov #color0.r,#63488;
    mov #color0.g,#63489;
    mov #color0.b,#63490;
    
    dcolor color0;
    dsetsize 24;
    dwrite pos,testtxt;
    
    dexit;
    
    vec2f pos,25,25;
    color color0,255,255,255;
    string testtxt,"Test.";

  10. #270
    Wire Noob Glok's Avatar
    Join Date
    Jun 2011
    Location
    The interwebz
    Posts
    6

    Default Re: Wire GPU Tutorial: by Drunkie

    Quote Originally Posted by Drunkie View Post
    Code:
    mov #color0.r,#63488;
    mov #color0.g,#63489;
    mov #color0.b,#63490;
    
    dcolor color0;
    dsetsize 24;
    dwrite pos,testtxt;
    
    dexit;
    
    vec2f pos,25,25;
    color color0,255,255,255;
    string testtxt,"Test.";
    Thanks, it worked.
    Last edited by Glok; 06-10-2011 at 12:47 PM. Reason: Fixed the problem
    12-year-old Asian kid is smarter than the average 16-year-old Whitey.

+ Reply to Thread
Page 27 of 27 FirstFirst ... 17252627

LinkBacks (?)

  1. 03-02-2010, 02:10 PM
  2. 02-14-2010, 06:42 AM
  3. 02-14-2010, 04:41 AM

Similar Threads

  1. Slot Machine [GPU + E2]
    By Drunkie in forum Finished contraptions
    Replies: 69
    Last Post: 11-13-2010, 04:39 PM
  2. Drunkie's Arcade Game - Skee Ball
    By Drunkie in forum Finished contraptions
    Replies: 21
    Last Post: 11-06-2010, 07:06 PM
  3. Drunkie's Pub
    By Drunkie in forum Servers
    Replies: 339
    Last Post: 06-08-2010, 12:06 AM
  4. DrunKie's iPod custom?
    By Fear57 in forum Wiremod General Chat
    Replies: 19
    Last Post: 12-01-2009, 03:56 PM

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