Administrator
Administrator
  • Mesaje: 4632
    Membru din: 07 Aug 2024, 21:53
  • Reacții: 102737
  • Mesaje utile: 45
  • Status: Pe aici.. 🤠
    Server: Saga2 - Soon
  • Regat: Jinno
  • [ID Discord]
  • Contact:
    *Descriere:

    Salutare comunitate M2FORUM!

    Aici aveti sistemul de Render Target, refacut de @CONTROL la standardele anului 2026!
    This is an extend to the original RenderTarget system with several quality-of-life features,

    rendering improvements, and a cleaner API, making it significantly easier to integrate into modern systems such as

    Wiki, Dungeon Info, Item Preview, Etc..
    Imbunatatiri aduse:
    Automatic RenderTarget Index Allocation

    - RenderTarget IDs are now allocated automatically by the engine.
    - This completely removes manual index management and guarantees that multiple systems can safely create RenderTargets without conflicting IDs. No manual IDs. No duplicated RenderTargets.


    Smooth Mouse Rotation

    - Drag the model with the mouse to rotate it smoothly.
    - Rotation uses inertia for a much more natural feeling.


    Smooth Mouse Wheel Zoom

    - Zooming is velocity-based with damping instead of instantly jumping between positions.


    Automatic Camera Fitting

    - The camera automatically adjusts itself based on the rendered model's height.
    - This allows players, monsters, NPCs and objects to appear correctly centered without requiring manual camera values for every race.
    - Completely plug-and-play.
    Code:
    this:
    	key = self.modelRenderer.GetRenderTargetIndex()
    
    will only be available after:
    	self.modelRenderer.SetSize(260, 170)
    
    not before !

    Hair Preview Camera

    - Hair preview can automatically switch to a dedicated camera focused on the character's head.
    Code:
    renderTarget.SetHair(key, hairCostumeVnum, True)   # Hair Preview
    
    renderTarget.SetHair(key, hairCostumeVnum)         # Normal Preview (False is the default value)


    Automatic Hair Model Detection

    - Simply pass the costume hair VNUM.
    - The RenderTarget automatically resolves the correct hair model internally without requiring manual `value(3)` extraction.


    Equipment Persistence

    - The RenderTarget automatically remembers compatible equipment for every race.
    - Supported parts:

    * Armor
    * Weapon
    * Hair
    * Acce
    * Weapon Shining
    * Armor Shining

    - Switching between races automatically restores the appropriate equipment whenever possible.


    Optional Auto Rotation

    - Auto rotation can be enabled per model.
    Code:
    renderTarget.SelectModel(key, race, True)   # Auto Rotate
    
    renderTarget.SelectModel(key, race)         # Static Model (False is the default value)

    Automatic Weapon Selection for Weapon Shining

    - If no weapon is equipped, the RenderTarget automatically equips a compatible default weapon before applying the weapon shining.
    - This allows weapon shining previews to work correctly without requiring additional setup.


    Modern C++ Memory Management

    - The RenderTarget has been modernized using smart pointers (`std::unique_ptr` / `std::shared_ptr`) for safer and cleaner resource management.


    Cleaner API

    - Several APIs have been simplified to reduce boilerplate and make RenderTarget integration much easier for future systems.


    *Poze / Video:
    [C++/Py] RenderTarget Rework 2026 - Mesaj 1 - Imagine 5
    [C++/Py] RenderTarget Rework 2026 - Mesaj 1 - Imagine 4
    [C++/Py] RenderTarget Rework 2026 - Mesaj 1 - Imagine 3
    [C++/Py] RenderTarget Rework 2026 - Mesaj 1 - Imagine 2
    [C++/Py] RenderTarget Rework 2026 - Mesaj 1 - Imagine 1

    *Link download / Code:

    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.

    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.


    *Link scanare VirusTotal (obligatoriu):

    Nou Cum descarc de pe TeraBox?

    Afișează detalii Ascunde detalii
    • Este asemănător cu Mega.nz
    • Instalați-vă clientul lor de Download de aici
    • Faceți-vă un cont (vă puteți loga cu Facebook / Google / etc)
    • Nou Dacă nu vreți să descărcați clientul de Download, folosiți acest site
    • Gata! Acum puteți descărca resursele rapid & simplu.

    De ce folosim TeraBox?

    • Este gratuit
    • Primești 1TB de spațiu gratuit la orice cont creat!
    • Este ușor de folosit și varianta premium este foarte ieftină
    • Fișierele nu sunt șterse niciodată
    TeraBox logo
    Comunitatea Metin2 Romania este si pe Discord! :ymcowboy:

    2500+ membri • Chat activ zilnic • Support • Cereri & Resurse

    ► discord.gg/jWxeDSf7HP ◄





    See full signature

    Creează-ți un cont sau autentifică-te pentru a participa la discuție

    Trebuie să fii membru pentru a răspunde

    Creează-ți un cont

    Membrii pot crea subiecte noi și pot descărca resurse Metin2 Gratuit!


    Te poți înregistra sau conecta rapid utilizând contul tău de Discord, Github sau Google.

    Înregistrare

    Autentifică-te

    Înapoi la “Îmbunătățiri”

    Informații

    Utilizatori ce navighează pe acest forum: Alex Ivan, Alexuueon, salexandru9982, ZeroS și 5 vizitatori

    Discord ID copiat: