Thread: Server Side Player Character Render

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 Server Side Player Character Render 
    Contributor


    Join Date
    Jul 2010
    Posts
    450
    Thanks given
    256
    Thanks received
    268
    Rep Power
    1305
    So I want to make the server render a player's character model with it's equipment and store it in a picture file.

    I know that this is a pretty complex task, and would require quite a bit of work.

    I guess to put it simple; we'd need to have the server replicate the part of the client where it renders the player model,
    and then add code to that to export that as a picture.

    The intended use of this functionality is to display a live model of the character on the website.

    Reply to the thread, shoot me a PM here, or preferably contact me on Discord (Nozemi#1995)
    Reply With Quote  
     

  2. #2  
    Renown Programmer
    Greg's Avatar
    Join Date
    Jun 2010
    Posts
    1,179
    Thanks given
    260
    Thanks received
    1,012
    Rep Power
    2003
    You should probably explain the purpose of having the images because that might not be the easiest solution.

    If you're just going to upload them to a site to display, then you'd be better off just sending the player data and let the webpage do the rendering.
    The equipment is the easy bit, there are already libraries for rending sprites/models in java
    Attached imageAttached image
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Discord Johnyblob22#7757


    Join Date
    Mar 2016
    Posts
    1,384
    Thanks given
    365
    Thanks received
    575
    Rep Power
    5000
    Quote Originally Posted by Greg View Post
    You should probably explain the purpose of having the images because that might not be the easiest solution.

    If you're just going to upload them to a site to display, then you'd be better off just sending the player data and let the webpage do the rendering.
    The equipment is the easy bit, there are already libraries for rending sprites/models in java
    gregs right, having the site render it would be a smart move.
    Reply With Quote  
     

  5. #4  
    Donator

    Jason's Avatar
    Join Date
    Aug 2009
    Posts
    6,092
    Thanks given
    2,402
    Thanks received
    2,823
    Rep Power
    4550
    Why wouldn't you just have the client produce an image and send that array of bytes back to the server for further processing?
    Reply With Quote  
     

  6. #5  
    Blurite

    Corey's Avatar
    Join Date
    Feb 2012
    Age
    26
    Posts
    1,491
    Thanks given
    1,245
    Thanks received
    1,729
    Rep Power
    5000
    Quote Originally Posted by Jason View Post
    Why wouldn't you just have the client produce an image and send that array of bytes back to the server for further processing?
    Because then people could end up sending any old shite back to the server, rather than just what's allowed/expected
    Attached image
    Reply With Quote  
     

  7. Thankful users:


  8. #6  
    Donator

    Jason's Avatar
    Join Date
    Aug 2009
    Posts
    6,092
    Thanks given
    2,402
    Thanks received
    2,823
    Rep Power
    4550
    Quote Originally Posted by Corey View Post
    Because then people could end up sending any old shite back to the server, rather than just what's allowed/expected
    Yeah that's a good point, never trust the client, not sure why I didn't think of that, derp.
    Reply With Quote  
     

  9. #7  
    Contributor


    Join Date
    Jul 2010
    Posts
    450
    Thanks given
    256
    Thanks received
    268
    Rep Power
    1305
    Quote Originally Posted by Greg View Post
    You should probably explain the purpose of having the images because that might not be the easiest solution.

    If you're just going to upload them to a site to display, then you'd be better off just sending the player data and let the webpage do the rendering.
    The equipment is the easy bit, there are already libraries for rending sprites/models in java
    Good point! I intend to display a live model of the player char on the website. If you have an example of where this is done, and what this might look like without this complex solution, I'd love to see it!

    However, I'm a bitch for the smaller details that makes perfect haha.

    ____

    Also thanks for the other responses on this! I'm open for other (easier) solutions as well!
    Reply With Quote  
     

  10. #8  
    Registered Member
    hacker's Avatar
    Join Date
    Jun 2013
    Posts
    1,409
    Thanks given
    576
    Thanks received
    580
    Rep Power
    5000
    Player appearance and items are all saved server sided so tbh dont even need client edits. Just load cache server sided (which you should already be doing) then port over Model decoder from client to server and construct an image grabbing data of models of items and appearance (Identikit). Doenst have to be done server sided either, can make separate program to handle this all it needs is access to player save files altho if u do it this way probably wont be alwys up to date, depends on how u handle player saving
    Attached image
    Reply With Quote  
     

  11. #9  
    Contributor


    Join Date
    Jul 2010
    Posts
    450
    Thanks given
    256
    Thanks received
    268
    Rep Power
    1305
    Quote Originally Posted by hacker View Post
    Player appearance and items are all saved server sided so tbh dont even need client edits. Just load cache server sided (which you should already be doing) then port over Model decoder from client to server and construct an image grabbing data of models of items and appearance (Identikit). Doenst have to be done server sided either, can make separate program to handle this all it needs is access to player save files altho if u do it this way probably wont be alwys up to date, depends on how u handle player saving
    I never intended to change the client, as this has nothing to do with the client. I'm however using Elvarg, and as far as I know, it doesn't load the cache as of right now.

    Making a separate software for this has also been in my thoughts, and might be the proper way to deal with this. As that would make it more flexible in terms of putting it on it's own server etc.
    Reply With Quote  
     

  12. #10  
    Extreme Donator


    Join Date
    Oct 2010
    Posts
    2,853
    Thanks given
    1,213
    Thanks received
    1,622
    Rep Power
    5000
    Quote Originally Posted by Nozemi View Post
    I never intended to change the client, as this has nothing to do with the client. I'm however using Elvarg, and as far as I know, it doesn't load the cache as of right now.

    Making a separate software for this has also been in my thoughts, and might be the proper way to deal with this. As that would make it more flexible in terms of putting it on it's own server etc.
    It only loads the maps and objects but there shouldn't be any problems loading the other stuff aswell
    [Today 01:29 AM] RSTrials: Nice 0.97 Win/Loss Ratio luke. That's pretty bad.
    [Today 01:30 AM] Luke132: Ok u fucking moron i forgot i could influence misc.random
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 54
    Last Post: 01-04-2013, 04:47 AM
  2. Server Side Player Clipping.
    By gf2u in forum Help
    Replies: 5
    Last Post: 04-20-2012, 10:09 PM
  3. Project No-Doze Player clipping, Server side.
    By killamess in forum Show-off
    Replies: 4
    Last Post: 06-06-2011, 12:10 AM
  4. Replies: 0
    Last Post: 12-25-2010, 07:27 AM
  5. Replies: 7
    Last Post: 10-19-2010, 12:57 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •